emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] orgstruct-mode with custom headline prefix


From: Thorsten Jolitz
Subject: Re: [O] orgstruct-mode with custom headline prefix
Date: Thu, 31 Jan 2013 21:24:28 +0100
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.2 (gnu/linux)

Christopher Schmidt <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]