From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Volker Wysk Newsgroups: gmane.emacs.help Subject: Re: Customize the key bindings in the org mode Date: Thu, 07 Mar 2024 14:13:00 +0100 Message-ID: <77b2caeff0c46af84292fa22f04c05b2befa6b07.camel@volker-wysk.de> References: <2b5e12e8680530e136294c237a6b2ce9ef1de06b.camel@volker-wysk.de> <87a5natczu.fsf@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20315"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.44.4-0ubuntu2 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 07 14:13:32 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1riDYy-0005C0-2B for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 07 Mar 2024 14:13:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1riDYa-0000dp-6o; Thu, 07 Mar 2024 08:13:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1riDYY-0000dZ-Gh for help-gnu-emacs@gnu.org; Thu, 07 Mar 2024 08:13:06 -0500 Original-Received: from einhorn.in-berlin.de ([192.109.42.8] helo=einhorn-mail-out.in-berlin.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1riDYW-0002t2-EV for help-gnu-emacs@gnu.org; Thu, 07 Mar 2024 08:13:06 -0500 X-Envelope-From: post@volker-wysk.de X-Envelope-To: Original-Received: from authenticated.user (localhost [127.0.0.1]) by einhorn.in-berlin.de with ESMTPSA id 427DD0A72748307 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Thu, 7 Mar 2024 14:13:00 +0100 In-Reply-To: <87a5natczu.fsf@free.fr> Received-SPF: pass client-ip=192.109.42.8; envelope-from=post@volker-wysk.de; helo=einhorn-mail-out.in-berlin.de X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146049 Archived-At: Am Donnerstag, dem 07.03.2024 um 13:59 +0100 schrieb Michel Verdier: > On 2024-03-07, Volker Wysk wrote: >=20 > > 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. >=20 > I do this for LaTeX mode >=20 > (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