Re: Manipulating keymaps
John Haman <[email protected]> Tue, 16 Jun 2026 07:04:44 -0400
| Newsgroups | gmane.emacs.help |
|---|---|
| Message-ID | <[email protected]> |
Dr Rainer Woitok <[email protected]> writes: > > That's exactly what I was looking for! But it only worked for the first > Perl programme I opened. After opening another Perl programme in the > same frame, again running "C-h k M-q" informed me that this key now runs > "prog-fill-reindent-defun" :-( > > What am I missing? > Hard to say, I've had no such problems with bind-key. I personally use bind-key through the use-package library. Try to bind your command by placing (use-package emacs :bind* ("M-q " . your-defun)) in your init.el, and then evaluate or restart emacs. -- John T. Haman Maryland, USA Sent from my Gnus