"Piotr Zielinski" <[EMAIL PROTECTED]> writes: > This is what I came up with after following the suggestion from the > manual, but it looks complicated to me, so I don't really like it: > > (defun local-org-insert-stars () > (interactive) > (when (looking-back "^ +" (point-at-bol)) > (save-excursion > (while (search-backward " " (point-at-bol) t) > (replace-match "*" nil t)))) > (org-self-insert-command 1))
A bit more complicated but using `replace-match' instead of `replace-string' has also the advantage of getting rid of the messages. -- 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