all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Volker Wysk <post@volker-wysk.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Customize the key bindings in the org mode
Date: Thu, 07 Mar 2024 14:13:00 +0100	[thread overview]
Message-ID: <77b2caeff0c46af84292fa22f04c05b2befa6b07.camel@volker-wysk.de> (raw)
In-Reply-To: <87a5natczu.fsf@free.fr>

Am Donnerstag, dem 07.03.2024 um 13:59 +0100 schrieb Michel Verdier:
> On 2024-03-07, Volker Wysk wrote:
> 
> > I know how to change key bindings globally. But how can I customize the
> > bindings for just a specific major mode? More precisely, the org mode.
> 
> I do this for LaTeX mode
> 
> (defun my-latex-hook (&optional arg)
>   "Custom hook for LaTeX mode."
>   (interactive "P")
>   (local-set-key [f5] 'TeX-command-run-all))
> (add-hook 'LaTeX-mode-hook 'my-latex-hook)

Yes, this works. I've adapted it for my case. Thanks!

Volker



  reply	other threads:[~2024-03-07 13:13 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 [this message]
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
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=77b2caeff0c46af84292fa22f04c05b2befa6b07.camel@volker-wysk.de \
    --to=post@volker-wysk.de \
    --cc=help-gnu-emacs@gnu.org \
    /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.