Hi Meng Weng, Meng Weng Wong <mengw...@gmail.com> writes:
> Ordinarily, M-m is bound to (back-to-indentation) – move point to > the first non-whitespace character on the line. It differs from C-a. > > Might it make sense for org-mode to override M-m? Not to override `M-m' but perhaps to define "*" as a syntactic whitespace character. Patch attached -- use with caution. I tested it a bit and it seems to work, but not all tests pass and there may be side-effects that I could not observe. In the meantime, I guess org-special-ctrl-a org-special-ctrl-a/e are useful enough, as already pointed.
diff --git a/lisp/org.el b/lisp/org.el index 4555ed1..d6ae281 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5177,6 +5177,7 @@ The following commands are available: (org-set-tag-faces 'org-tag-faces org-tag-faces)) ;; Calc embedded (org-set-local 'calc-embedded-open-mode "# ") + (modify-syntax-entry ?* " ") (modify-syntax-entry ?@ "w") (modify-syntax-entry ?\" "\"") (if org-startup-truncated (setq truncate-lines t))
-- Bastien