New answers tagged

1 vote

How add Evil keybindings to Magit, without removing all Magit prefix-keys

Transients activate their own keymaps. The Modifying Existing Transients section of the transient manual describes how to extend existing transients. Unfortunately, it generally takes quite some ...
dalanicolai's user avatar
  • 6,633
2 votes

On installing a handler for SIGUSR1

Could someone explain when and why one would choose one of these approaches over the other? Use the 1st one. See bug#65577: Eli Zaretskii: Stefan, it sounds like the ... example is some left-over ...
shynur's user avatar
  • 4,638
2 votes

Configuring Key-bindings from Org-Table

How tables are passed to Emacs Lisp code blocks Here's a toy example table with column headers, an hline separating the headers from the body and cells that contain strings - very much like the table ...
NickD's user avatar
  • 28.2k
0 votes

Why does emacs-29 translates meta to meta+hyper ("M-somekey" to "H-M-somekey")?

Very likely an incompatibility of xkb and xmodmap: xkb defines modifiers but xmodmap does not override them completely (even with clear Mod1 or so). E.g. when your xmodmap assigns a key to Mod4 and ...
ensc's user avatar
  • 168
0 votes

query-replace, add a "skip to next" in lambda function

The solution is built-in in query-replace-regexp: (defun fix-mult-punct-before-footnote () "Scope: FOOTNOTE Description: Fixes repeated/multiple punctuation before the \\footnote macro." ...
Gabriele Nicolardi's user avatar
1 vote

Safe way to rebind a key for only the duration of a function

set-transient-map is a native-compiled Lisp function in ‘subr.el’. (set-transient-map MAP &optional KEEP-PRED ON-EXIT MESSAGE TIMEOUT) Set MAP as a temporary keymap taking precedence over other ...
phils's user avatar
  • 49.7k
3 votes

How do I assign Ctrl-C Ctrl-D to menu Python/Debugger in my ~/.emacs file?

The same thing we do every night, Pinky! (define-key desired-keymap-here (kbd "your key here") 'preferred-command-here) It’s just a fill–in–the blank madlib. You ...
db48x's user avatar
  • 16.8k
1 vote

Emacs calling unbound key sequence `C-c @` a "non-prefix key"

The problem was that I was trying to edit the wrong mode map. (define-key outline-mode-map (kbd "C-c @ TAB") 'outline-cycle) was not working (let alone (define-key org-mode-map (kbd "C-...
Jeffrey Benjamin Brown's user avatar

Top 50 recent answers are included