From: Christopher Dimech <dimech@gmx.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Emacs keybindings according to file type
Date: Mon, 21 Sep 2020 16:20:47 +0200 [thread overview]
Message-ID: <trinity-85e8b7f1-9f8b-4568-95b3-41822a118824-1600698047665@3c-app-mailcom-bs09> (raw)
In-Reply-To: <83v9g7xliv.fsf@gnu.org>
Where can I find some examples?
> Sent: Monday, September 21, 2020 at 2:16 PM
> From: "Eli Zaretskii" <eliz@gnu.org>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Emacs keybindings according to file type
>
> > From: Christopher Dimech <dimech@gmx.com>
> > Date: Mon, 21 Sep 2020 08:46:02 +0200
> >
> > I want to set different keybinding according to the type of file I load
> > 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.
>
>
next prev parent reply other threads:[~2020-09-21 14:20 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-21 6:46 Emacs keybindings according to file type Christopher Dimech
2020-09-21 14:16 ` Eli Zaretskii
2020-09-21 14:20 ` Christopher Dimech [this message]
2020-09-21 15:57 ` Eric S Fraga
2020-09-23 6:33 ` Christopher Dimech
2020-09-23 7:33 ` Yuri Khan
2020-09-23 7:44 ` Christopher Dimech
2020-09-23 7:52 ` Yuri Khan
2020-09-23 8:03 ` Christopher Dimech
2020-09-23 8:06 ` Marcin Borkowski
2020-09-23 23:05 ` Emanuel Berg via Users list for the GNU Emacs text editor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=trinity-85e8b7f1-9f8b-4568-95b3-41822a118824-1600698047665@3c-app-mailcom-bs09 \
--to=dimech@gmx.com \
--cc=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).