New answers tagged

3 votes
Accepted

Are C-[0-9] and M-[0-9] completely interchangeable?

When I do C-h k M-1, I get M-1 runs the command digit-argument (found in global-map), which is an interactive byte-compiled Lisp function in simple.el. It is bound to C-9, C-8, C-7, C-6, C-5, C-4, C-...
1 vote

Are C-[0-9] and M-[0-9] completely interchangeable?

Without knowing the bindings myself, I'd say go ahead and adjust the bindings to your liking. Even if you're overwriting some default binding, if you never use it, why not adjust it a way that's most ...
1 vote
Accepted

How to disable `q` key (quit) for *Geiser Debug* window?

C-h v major-mode should tell you the name of the major mode for that buffer. C-h m will tell you more about the mode, and it might tell you the name of the mode's keymap. If not, a good bet is that ...
  • 71k
1 vote

Override all local keymaps

You can use a translation keymap to pretend that when Emacs receives the input C-M-q, it's actually the encoding of a special function key. Since you want this to apply to all terminals and to ...
1 vote
Accepted

How to remap org-capture-templates keybindings?

There are two things going on here: How to open a particular template from lisp How to bind a function to C-i. For the first, note that org-capture takes an optional argument to set the template. ...
1 vote
Accepted

Org-cycle with TAB from isearch without RET

If you want TAB to exit Isearch and do its regular (non-Isearch) thing, then just bind it in isearch-mode-map to isearch-exit (the same function RET is bound to): (define-key isearch-mode-map (kbd &...
  • 71k
0 votes

Org-cycle with TAB from isearch without RET

Instead of isearch, you should be using org-occur. See (info "(org) Sparse Trees") or Sparse Trees (The Org Manual) org-occur (C-c / r or C-c / /) Prompts for a regexp (see Regular ...
3 votes
Accepted

How to change the binding of "?" on the help command in ediff-mode?

It is not a good idea to change the global map for this as this answer recommends: it affects far more than the binding that you want to change which is only valid inside the Ediff Control Panel ...
  • 21.2k
1 vote

How to change the binding of "?" on the help command in ediff-mode?

The command corresponding to your desctiption seems to be ediff-toggle-help. So I that guess adding the following line to your init might work: (global-set-key (kbd ">") 'ediff-toggle-...
0 votes

how to have EMACS use the right alt key the same as the left alt key

for fedora (34+), at least, the incantation is: settings .. keyboard special characters entry .. alternate characters key default is right alt. change it to something else, maybe something you don't ...
  • 1
0 votes

how to unbind non-breaking space A-SPC

I suspect your right Alt key is doing something outside of Emacs and sending Emacs a non-breaking space in that particular combination. Test that outside of Emacs. If this is the case, you'll have to ...
  • 44.3k
2 votes
Accepted

Keybinding for forward-page and backward-page

From the docs (C-h f global-set-key): global-set-key is an interactive native compiled Lisp function in ‘subr.el’. (global-set-key KEY COMMAND) Give KEY a global binding as COMMAND. COMMAND is the ...
0 votes

Create a keybinding to call a function using the universal-argument

For searchers: (global-set-key (kbd "M-s-s") (lambda (&optional arg) (interactive "P") (my-nested-function-with-C-u-logic ...
0 votes

How to swap `super` and `meta` in terminal Emacs on macOS?

How to swap super and meta in terminal Emacs on macOS? Before trying on kitty try the below suggestion on GUI Emacs first. Install the following snippet (require 'dash) ;; (defvar modmap--bare-...

Top 50 recent answers are included