From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: jaime-escalante@gmx.com Newsgroups: gmane.emacs.help Subject: define-key for fortran code Date: Sat, 29 May 2021 15:18:45 +0200 Message-ID: References: <877djirww1.fsf@zoho.eu> 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="8656"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: moasenwood@zoho.eu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 29 15:53:19 2021 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 1lmzOx-00028O-H3 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 29 May 2021 15:53:19 +0200 Original-Received: from localhost ([::1]:44314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lmzOw-00083q-HU for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 29 May 2021 09:53:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmyrc-0000Fp-TD for help-gnu-emacs@gnu.org; Sat, 29 May 2021 09:18:52 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:51437) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmyrb-0000VQ-0d for help-gnu-emacs@gnu.org; Sat, 29 May 2021 09:18:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1622294325; bh=d7ZJjLRwIbTb7Zgu6e6XP6COWqgSAu8FYrYQvXUJkxM=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=NjUCGHMEVdSm/JMtfG0PEemoLgG7HUzJxzrBKjP8/fT+ZOs4ZntocdOTQUX6MCTpX K0mHj9fnKcrvrCbQ33d/wWOUfkG/z79CtFEkgr1CMTBA+DUZoXEvdJPC1RMbwvR8ds vbB9F7ikGV8UEK+V88hhRfa8qBw8J5mCO3bfKhGE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs01.server.lan [172.19.170.58]) (via HTTP); Sat, 29 May 2021 15:18:45 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <877djirww1.fsf@zoho.eu> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:6ywJI/jr8OZBw7wHQLZiLzFI8U+iKvKAR+MTbOxVacnThvWIC22icv7c80zXMdZwga2B2 R7joZgzE2bZvCi0wNfQDe2miy5D6s4VeNYbXrCD7RJ0e4snuDCBk8hm+pyXfEaaU0WdeuADG62bs m/Dl0VBg4njwph1wQaVit/DqQt2wcInXwrxQ7LpVkmnSZrfvenLGDr788FTjbQMc9i1EpCrwrVWA CyScSbTL+t/4ACI30Bp7cR8wjPsx9sjRpwhBu0akus0gFRxMsHP8vh/Y0Q2FJnzTUvB1/TTFzF3I 8Y= X-UI-Out-Filterresults: notjunk:1;V03:K0:bEkRBacQrdY=:tK+8/t8evDS75rh99NJQA+ Cr+0c2jXDRgTAVCiEM5y2dqq/5QNyZZlrP/NIf+H/YAC+Fr6sDgro/dMVy1koGO+BVIPTCmV0 SrXYaQMTd7Z3+jwe8jtLdq6xaVJRtM6u6TmgvA1z26wmP9ojOJc4UtMzMvfsnIv5mAhzSws5T nXx8KiYyqipwQgNB63W1rk7Cqde11QqXlvaZZ8kkRTs+0nSZ5Oa5eU5llzlIZFDIU9CelQk1U T2tkc5T7LDYbXslryEYMQ4smUdoUTp36IGS5v8G/beObn7/wzNY2WcvCSXRRWrzOTwfvBN5sn 10dfUn04cXTU+VJIzHBAJFd7HyZJ33LVtN+pYkuRppYXAo1sXYcoRFPrJCiq9Auj5cF5L+fYC 5LoJauE+XzdYsMvonfrzXEF4RkncuZ2+eiutXr5nZUN5Frkz6CjOLhndzuSFQg8nI2/U7R8na QHaNv62JQNo4d7jIjOqtKKLEzji/kKUMa8tNP86HTnKjOMcfE8F7hR0RuxDj4RIYL6b/RAd/A pWQaDwpNruaHjXvlxoOOSKY24uF1R1MBzLUV/c5i46T4jH9gbP3ve6w9BNzng51FxqtsRdGX5 i+cP7hzv/tGXUYDncW9I6P9ADDIBCs+zvC541kF/Q9OmKrjkkneB3UucDm9uP6xQCll8Z1fY4 GVWFAxP1r6VSD5RA2L0ZJrhIFB/FuoNV+owzwvegDt7jkbZ1FYec93ZTy4qkNEYrOwl24IUfO h5YT3nYbXXxuiZi5o6nnyHn0R06eyXnWtiPbU1gjir1geLL6y+RnM9S5tgDP5+ic4yoSs3kj Received-SPF: pass client-ip=212.227.17.20; envelope-from=jaime-escalante@gmx.com; helo=mout.gmx.net 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 29 May 2021 09:52:50 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.help:130285 Archived-At: > Sent: Saturday, May 29, 2021 at 4:23 PM > From: "Emanuel Berg via Users list for the GNU Emacs text editor" > To: help-gnu-emacs@gnu.org > Subject: Re: define-key for fortran code > > jaime-escalante wrote: > > > I wonder what I can use "define-key" for fortran code (for > > both f77 and f90) > > (require 'f90) > (require 'fortran) > > (defun define-fortran-key (key fun) > (define-key f90-mode-map key fun) > (define-key fortran-mode-map key fun) ) > > (define-fortran-key "q" #'kill-emacs) ; e.g. > I cannot follow how to use your function (define-key f90-mode-map key fun) I was passing the key sequence as (kbd "H-o q"), you are using "key" and j= ust pass "q" to it. Could I just pass "H-o q" to it?