Christopher Schmidt <christop...@ch.ristopher.com> writes: > Here is the patch. Now one just needs > > ;; Local Variables: > ;; eval: (orgstruct-mode 1) > ;; orgstruct-heading-prefix-regexp: ";;; " > ;; End: > > It cannot get any easier than this.
Just a question - why ";;; " and not ";; " (i.e. ";; \*+ ")? I (still) don't use orgstruct-mode instead of outline-minor-mode, but can easily use full org-mode functionality in Emacs Lisp files by marking & outcommenting/uncommenting regions that look like this ,----------------------- | ;; * level1 | ;; ** level2 | ;; text text text text | ;; ** level2 | ;; text text text text | | (defun ...) `----------------------- ,----------------------- | * level1 | ** level2 | text text text text | ** level2 | text text text text | | (defun ...) `----------------------- and toggling major modes between Emacs Lisp and Org-mode. With prefixes like ';;; *' or ';;*' this becomes less convenient in my eyes, since 'M-x comment-region' can't be applied anymore. -- cheers, Thorsten