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: Customize the key bindings in the org mode Date: Thu, 07 Mar 2024 11:41:27 +0100 Message-ID: <2b5e12e8680530e136294c237a6b2ce9ef1de06b.camel@volker-wysk.de> 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="28278"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.44.4-0ubuntu2 To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 07 11:42:45 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 1riBD2-0007D4-Uv for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 07 Mar 2024 11:42:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1riBCE-0006IZ-Lb; Thu, 07 Mar 2024 05:41:54 -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 1riBCA-0006I9-2C for help-gnu-emacs@gnu.org; Thu, 07 Mar 2024 05:41:50 -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 1riBC8-0003xX-4a for help-gnu-emacs@gnu.org; Thu, 07 Mar 2024 05:41:49 -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 427AfSuX2488217 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Thu, 7 Mar 2024 11:41:28 +0100 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:146047 Archived-At: Hi! 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 found something on the web and adapted it: (with-eval-after-load "org" (define-key org-mode-map [M-down] #'absatz-vor= ) But this doesn't work, because the org-mode-map is nil. Seems like that's because org-mode hasn't been read yet, in the ~/.emacs file. So how should I do it? TIA Cheers, Volker