help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to bind a key locally to a buffer (not mode!)


From: Artur Malabarba
Subject: Re: How to bind a key locally to a buffer (not mode!)
Date: Mon, 20 Oct 2014 13:16:21 +0100

Here it is:

(use-local-map (copy-keymap (current-local-map)))
(local-set-key "x" #'some-function)

This will bind x to some-function only on the current buffer.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]