From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michel Verdier Newsgroups: gmane.emacs.help Subject: Re: Customize the key bindings in the org mode Date: Thu, 07 Mar 2024 13:59:47 +0100 Message-ID: <87a5natczu.fsf@free.fr> References: <2b5e12e8680530e136294c237a6b2ce9ef1de06b.camel@volker-wysk.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33343"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus 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:00:35 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 1riDMQ-0008W6-QR for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 07 Mar 2024 14:00:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1riDLq-0003TC-Nv; Thu, 07 Mar 2024 07:59:58 -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 1riDLn-0003Sp-Dz for help-gnu-emacs@gnu.org; Thu, 07 Mar 2024 07:59:55 -0500 Original-Received: from smtp3-g21.free.fr ([2a01:e0c:1:1599::12]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1riDLl-00061w-BL for help-gnu-emacs@gnu.org; Thu, 07 Mar 2024 07:59:55 -0500 Original-Received: from mobius.free.fr (unknown [IPv6:2a01:e0a:8e:3f20:a62:66ff:feb9:727c]) (Authenticated sender: mv524@free.fr) by smtp3-g21.free.fr (Postfix) with ESMTPSA id 22BE013F88F for ; Thu, 7 Mar 2024 13:59:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1709816388; bh=eIfhZkNAO4cGTuOH3kXoGboWV+kCxFqvK48eRQsiDXU=; h=From:To:Subject:In-Reply-To:References:Date:From; b=ag46tL9PBySnoIYevQUICBn9wYWTzQb7GSnmkLSCjCntTuQBCVxGWYwWty1hL/EhY v24L73xd0q6VIAvsDjz+kb7DP7AfFRgDNYpG4Itps0A/foG1m3loLBmaIYq+TvroNf A3PIb4a/PvtN9Gc/opw0XnaFhXO4Nr2NgUBuQyfhKqqAqeUhA+froF1tmDqKUgpCYG BnYdj5CdrsAZYU1rrIi3Wma4zXfWglEXAB+aRQW9gWyZDde2IUKsWdcgq+EJ1f4Cgi O28naabIVcCVzN52JeWjcHqZrs74oK39JYY2vCGDnVfirCcSxHtQhWQ6qB1T6iANIl gpMJX7w4DB5Cw== In-Reply-To: <2b5e12e8680530e136294c237a6b2ce9ef1de06b.camel@volker-wysk.de> (Volker Wysk's message of "Thu, 07 Mar 2024 11:41:27 +0100") Mail-Copies-To: never Received-SPF: pass client-ip=2a01:e0c:1:1599::12; envelope-from=mv524@free.fr; helo=smtp3-g21.free.fr X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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:146048 Archived-At: 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)