help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Customize the key bindings in the org mode


From: Michel Verdier
Subject: Re: Customize the key bindings in the org mode
Date: Thu, 07 Mar 2024 13:59:47 +0100
User-agent: Gnus

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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]