Hi, Here's a small piece of elisp code that might be useful to some of you. Pressing '*' now inserts '*' as before, but if there are only spaces between the beginning of the current line and the point, then all of them are converted to stars. Useful for inserting new headlines.
Longer explanaition: assume you have the following structure: * first level headline _* second level headline __* third level headline (_ denotes an invisible star) Since stars are invisible, I often find myself trying to create a new subheadline by just inserting a single star * first level headline _* second level headline __* third level headline * which of course doesn't normally work, hence this elisp code. (defun local-org-insert-stars () (interactive) (when (looking-back "^ *" (point-at-bol)) (replace-string " " "*" nil (point-at-bol) (point))) (insert "*")) (define-key org-mode-map "*" 'local-org-insert-stars) Haven't thoroughly tested it, but it seems to work ok. Piotr _______________________________________________ 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