From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: ludvig-faddeev@gmx.com Newsgroups: gmane.emacs.help Subject: define-key for fortran code Date: Sat, 29 May 2021 14:13:07 +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="1885"; 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 14:13:33 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 1lmxqO-0000JX-SH for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 29 May 2021 14:13:32 +0200 Original-Received: from localhost ([::1]:35116 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lmxqN-0003UG-Jp for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 29 May 2021 08:13:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmxq4-0003Tz-8b for help-gnu-emacs@gnu.org; Sat, 29 May 2021 08:13:12 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:36761) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmxq2-0002Ix-AM for help-gnu-emacs@gnu.org; Sat, 29 May 2021 08:13:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1622290387; bh=5RiempQeoyEJSHqzWj+qfpW/+pcWCuh20tjAjXfJ+sQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=JN4aYAWwhS7/T3FvWz1mQu4K2v7spRygOXC5ACIsjInHp+5PY9ztynTi0MVTZolYi zHsC7TxWDFI/16bQBMUR7C/WEzBvCAcNYp29gPwh5XCC7je2wuvenWZqntVcKAXEUH 6p0aDheEUA7LX18W7pc0pjzt805m5phOlS0V701A= 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 14:13:07 +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:fySTPM1yx2TmP+6rUzSO0DKL3fo5tE+ExKL8+eybUR2lgzOdfkq4myln2WlCWBQn+Ew/X E+DXRXIwt9t5QoqlPd6O2VYlMTuP1Z7aqYB/7C6e/iPWApbLhAV7kWcYvtDG+BTPL7BSSf09UdcW ycp6k2CyGpd7mw8R8BzQy3h2t9uzGKzmHCl+pFaIvhBQYm6LtsjLSC7YbxiFo3al4Q7jAf+4zW3m CyqnWUvxfnICjpw/mDTJSQZaXzP2LvHUAdkvj9ckwt8nehq8c8t5PdDyPgiNuVRHCC6ubTBquO97 tE= X-UI-Out-Filterresults: notjunk:1;V03:K0:fXmZz/teQw4=:PTtjek1I01VJ5xiONmyZvq WqYCs3dkJQPRZH7/dNWJAsF7GNZoZy9NqWlvGUEmb3y0qrQIi1TvEeJZ3H71Ao27T7lCkikvH f6W0Ofcp5k8A4JV7pKVerbH4Amh3Mh27hF1q1WyIKbOBi0X1Ewav8NYuaNK6zu/DxxeNeHUqJ 6DK7zK2r+v22t2fRE+BgHZeFDe7LP2hlQ7/nYYJJul3POHV81zNSzfdizZ12cJqPWrL8No+4u U54JWa6nQx87+tnPXph6Fz2WjndM+Beoiox3MBWmDrDKD/dihDvo4TT6WNrWau9tDyqY7IsyM fEeP3ZgYdvddqe7eribtkseB23U0WxDfoe2Qw+qPUKV7roc49ztBFLbKuXh2Ubglf1yCD3US6 /vgFNjiNlnIoo9rlVcph5XklnsxqwkIQITkszVCv8CEv9ZFDOFFewc8lQTlL6xVIYRWV+0Km4 5mXoJGL/gnrQOqTMNsIHgdugvZ/rZb1aQ7pWemJ5YbF1/EC77MC/cAi5viliOMQNZ3f9OWeR0 K7uBuIiUqPeQlHFRaT6lMWDGYSPkwIn5nyNXcdGbcF/PQZq73ejn5uCitTVAnkSD82GXbjxgL Xo5aLVLqNrNTar9N4juhLboB6FDsm93WGthVsOzNi+AULc4jUuyLMl+/fmBBXuTwF0l5PyUX2 C3z/DoYOxEo0epddxUGD+5YqI2gW/uvD8PLz1uh6zWlH/BF/SzTuBMT+Z+4fU0WJ3WKmkXlwx hOrb3Ai7AwaGUSYijrcfJm/+CNtQ1pNpUE1apXH0cYLjx/PuO5w8E8IkBNNgCOa3XxPxYRWo Received-SPF: pass client-ip=212.227.15.19; envelope-from=ludvig-faddeev@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_H3=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-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:130283 Archived-At: Talking about fortran, I wonder if the following is the way to use "with-e= val-after-load" for fortran. (with-eval-after-load 'fortran (set-keybindings)) (with-eval-after-load 'f90 (set-keybindings)) > 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. > > ? > > -- > underground experts united > https://dataswamp.org/~incal > > >