elisp - Collapse/expand parts of .emacs file with org-mode -
i learned basics of emacs' org-mode , couldn't help imagine applying collapse/expand concept parts of source file. able split .emacs file in subparts , display headers on load, following:
; erc config... ; dired config... ; misc config...
each of these of course of study headers many lines of codes 1 time expanded, this:
; erc config (defun start-irc () (interactive) (erc-tls :server "irc.freenode.net" :port 6697 :nick "foo")) ; dired config... ; misc config...
so possible? how accomplish emacs 24.2?
thanks!
as nice org-mode
is, require structure, don't believe can maintained way want in .emacs
file.
what does work folding-mode
. check out info on wiki page, set comments around chunks of code want set in fold, so:
;;{{{ folder of kind (a few lines) (of lisp) (this "code" filler) ;;}}} ;;{{{ different folder (some more elisp code) ;;}}}
and when folded, like:
;;{{{ folder of kind... ;;{{{ different folder...
emacs elisp org-mode
No comments:
Post a Comment