From: Michael Heerdegen via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Customize the key bindings in the org mode
Date: Sat, 09 Mar 2024 01:01:44 +0100 [thread overview]
Message-ID: <87le6sw9w7.fsf@web.de> (raw)
In-Reply-To: m2le6tvtv8.fsf@macmutant.fritz.box
Arash Esbati <arash@gnu.org> writes:
> Caveat emptor: I'm not an Org user.
>
> Does the above mean that this example in Org manual[1] doesn't work
> OOTB?
> (with-eval-after-load 'org
> (define-key org-mode-map (kbd "M-n") #'org-next-link)
> (define-key org-mode-map (kbd "M-p") #'org-previous-link))
It does work OOTB.
I only had a very quick look yesterday, but I now see that org.el does
require org-keys and all the other stuff, so I don't understand the
problem reported by the OP, which is described only very briefly. AFAIU
there should not be a problem when defining keys in `org-mode-map'
inside a with-eval-after-load 'org. I tried it in several Emacs
versions and everything was fine.
Michael.
next prev parent reply other threads:[~2024-03-09 0:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-07 10:41 Customize the key bindings in the org mode Volker Wysk
2024-03-07 12:59 ` Michel Verdier
2024-03-07 13:13 ` Volker Wysk
2024-03-08 0:37 ` Michael Heerdegen via Users list for the GNU Emacs text editor
2024-03-08 11:35 ` Arash Esbati
2024-03-09 0:01 ` Michael Heerdegen via Users list for the GNU Emacs text editor [this message]
2024-03-09 10:35 ` Arash Esbati
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87le6sw9w7.fsf@web.de \
--to=help-gnu-emacs@gnu.org \
--cc=michael_heerdegen@web.de \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.