[Top][All Lists]

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

Re: Adding String to Beginning of Lines

From: Michael Heerdegen
Subject: Re: Adding String to Beginning of Lines
Date: Tue, 10 Nov 2020 21:07:58 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Christopher Dimech <> writes:

> I have now figured the problem.
> Was testing it in the scratch buffer, and thought it is in
> emacs-lisp-mode, but it is not.

Yes - but that's not the problem.  The key bindings should be inherited.

The problem is that the hook is not run if you evaluate it in the
existing buffer.

Better alternative: elisp-mode.el is already loaded when Emacs has
started.  So you don't need a hook at all, the `define-key' call is


reply via email to

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