From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: Emacs keybindings according to file type Date: Mon, 21 Sep 2020 16:20:47 +0200 Message-ID: References: <83v9g7xliv.fsf@gnu.org> 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="31657"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 21 16:24:26 2020 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 1kKMjx-00085r-8m for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 21 Sep 2020 16:24:25 +0200 Original-Received: from localhost ([::1]:46608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kKMju-00055U-Lh for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 21 Sep 2020 10:24:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kKMgW-00055J-4V for help-gnu-emacs@gnu.org; Mon, 21 Sep 2020 10:20:52 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:46563) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kKMgT-0002K0-Vb; Mon, 21 Sep 2020 10:20:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1600698047; bh=QX9FC7t2X5lkO8OmawhqBOlptAsWolEvK9I30VnxVdo=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=TMKcUBzSqtL/x9yRjN6IePVbEkNiglFNAQTUNXhg1A0VYjSz6opcC7tyzphzj77ht Uce8Ag0LTsAuJtd9BRFu5+hoEl6ltV2rwUyMiXScibocVSSXHwyw0GjTcHZ8oVO+bo 3GsVaa+hrGgB1Bow5ueL4DvneOF4sGAEhRPXgTfE= 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-bs09.server.lan [172.19.170.177]) (via HTTP); Mon, 21 Sep 2020 16:20:47 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <83v9g7xliv.fsf@gnu.org> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:0sZAB9oEV4O4BXXpS2Fvjf1X5czNgfN9r3HbYxBFJMTbVIMqv/MGmwd6jwgsulNR4eahK 13ut35awZHi9IqMoBCIyoVPO0KeeDIiYcfiN6ZTk0uHerdc6CKvG+aA3bVM30vAd8sBrUqcy4Urq d2E9GAV1BbTK4segceDjqzBheaMgMFtQft1GkzXXRKhvf3AxebG6xCZ8gil56zcDwHmSdtdLfqD8 71UOVvZuXKMmFd6Xxf8l5GFTNik+561xEhhKE4Os+2P40a9kjxjYM2mq1n9QEjKjyfJYOfgnJcPg 0U= X-UI-Out-Filterresults: notjunk:1;V03:K0:acHSx4CLLeY=:nFhujiY8pDkQsW9FCCz047 qgAqC4X4bVQtEWdq4ooL9OWLTIS/ozxYqgLWauuVDNPHvfJdbrGjQFalmHKZi3FvRL0jY7NIT qyfu1In2UyeNImf0rSlFcM66tP8zeM1rV8dsLxX6eJG2EYpZg4Q+d5R82Ljz2KX2viI67KsIi 530tUD2R9wHslYXe4jSb6TfX3SWXf6tZK0t12sfGuLQIsqUIzuApnJkC0yuPKeJFH++6qd6dn 67GImcdMI8BDjijONESy8S6gMUz+sCH98dAdv5vCGXkmZlzjo6v4lBFYtJny5XXNEAU9EQ5g4 C3HYYIExNbzSObozp64zONek6xmCbeyFWOv3C75vKz9f/fwKkSFPRRkYtEZZIK0bBlR38iedH Xc/7tswwpDmuuuG7AQMIdSNu7o+Fa/PWARlsPswyRA6aQcWiLmsHGTUzn9kfSFeUEwVl9qzSm GqyNLLgQBnAXNSL5P6JdRQkhkw5cfTyZORIvZNPGQCGWTLBKK2BWrAWnGmS08mj1m6FsYJ83S bwgWDvSqCwcX8xt3em1/DYxt3CIRZKoQwCwVqWn/2+Q7ca9BbIEprRsqF2gzyI8arzS+Q5U4p 9eOLOC+bD62axaymh3tfPd7j9kPwJq9ATA+qG52flS7lQT0EdhJfC5sZOiBqv6KMfsCGTFULO Ye5TMruB00B71UQvo0X2kHreJP/GCbFJihgnorVECkCxaMSvoENpFcdV8bRqgF/aGeYc= Received-SPF: pass client-ip=212.227.15.15; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/21 09:55:12 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] 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_H2=-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:124127 Archived-At: Where can I find some examples? > Sent: Monday, September 21, 2020 at 2:16 PM > From: "Eli Zaretskii" > To: help-gnu-emacs@gnu.org > Subject: Re: Emacs keybindings according to file type > > > From: Christopher Dimech > > Date: Mon, 21 Sep 2020 08:46:02 +0200 > > > > I want to set different keybinding according to the type of file I loa= d > > into a buffer. I wonder how I can do that. > > The usual way of doing this is use local-set-key in a mode hook. Then > the key bindings will only affect the mode of that file. > >