Hi Scot, Scot Becker <scot.bec...@gmail.com> writes:
> Does anyone have a recipe for easy org-style folding of an elisp file? > I'd like to divide my .emacs into segments to make it easier to > oversee and navigate. I use this (original idea from Tassilo IIRC): --8<---------------cut here---------------start------------->8--- ;;; Use orgstruct-mode in emacs-lisp-mode buffers (add-hook 'emacs-lisp-mode-hook 'orgstruct-mode) (defun org-cycle-global () (interactive) (org-cycle t)) (defun org-cycle-local () (interactive) (save-excursion (move-beginning-of-line nil) (org-cycle))) (global-set-key (kbd "C-M-]") 'org-cycle-global) (global-set-key (kbd "M-]") 'org-cycle-local) --8<---------------cut here---------------end--------------->8--- -- Bastien _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode