"Piotr Zielinski" <[EMAIL PROTECTED]> writes: > 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) >
Very nice idea! A minor inconvenience is a warning when compiling the code .emacs:2604:30:Warning: `replace-string' used from Lisp code That command is designed for interactive use only. How to get rid of this? regards, -- Seweryn Kokot _______________________________________________ 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