[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Customize the key bindings in the org mode
From: |
Volker Wysk |
Subject: |
Re: Customize the key bindings in the org mode |
Date: |
Thu, 07 Mar 2024 14:13:00 +0100 |
User-agent: |
Evolution 3.44.4-0ubuntu2 |
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