From: Bastien <bzg@altern.org>
To: Meng Weng Wong <mengwong@gmail.com>
Cc: "emacs-orgmode@gnu.org Mailing List" <emacs-orgmode@gnu.org>
Subject: Re: suggestion: M-m should move point to first word on line
Date: Mon, 11 Feb 2013 16:15:27 +0100 [thread overview]
Message-ID: <87a9rahofk.fsf@bzg.ath.cx> (raw)
In-Reply-To: <F5BABF55-1B10-4CDA-8DA2-9B6BE27E495B@gmail.com> (Meng Weng Wong's message of "Fri, 8 Feb 2013 10:42:01 +0800")
[-- Attachment #1: Type: text/plain, Size: 611 bytes --]
Hi Meng Weng,
Meng Weng Wong <mengwong@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.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: syntax.patch --]
[-- Type: text/x-patch, Size: 441 bytes --]
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))
[-- Attachment #3: Type: text/plain, Size: 14 bytes --]
--
Bastien
next prev parent reply other threads:[~2013-02-11 15:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-08 2:42 suggestion: M-m should move point to first word on line Meng Weng Wong
2013-02-08 4:35 ` Yagnesh Raghava Yakkala
2013-02-11 15:15 ` Bastien [this message]
2013-02-12 7:03 ` Eric S Fraga
2013-02-12 7:33 ` Bastien
2013-02-12 22:42 ` Eric S Fraga
2013-02-15 11:02 ` Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a9rahofk.fsf@bzg.ath.cx \
--to=bzg@altern.org \
--cc=emacs-orgmode@gnu.org \
--cc=mengwong@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).