Linked Questions

2 votes
3 answers
904 views

Global key binding overriden by undo-tree [duplicate]

I am trying to remap globally C-/ but the undo-tree package hinders me from doing so. When calling this command (in my init file): (global-set-key (kbd "C-/") 'left-char) after having loaded undo-...
NVaughan's user avatar
  • 1,481
1 vote
2 answers
717 views

Stop major modes from overwriting my keybinding [duplicate]

By default C-x n is a prefix keymap used for narrowing. I want to bind C-x n to windmove-down. (global-set-key (kbd "C-x n") 'windmove-down) This works fine for Text mode. But many major ...
Kaligule's user avatar
  • 339
0 votes
1 answer
143 views

How can i define a keybinding, which can't be modified, once it is set? [duplicate]

vim has a really great feature for defining keybindings. from the vim docs: :cno[remap] {lhs} {rhs} |mapmode-c| *:cno* *:cnoremap* Map the key sequence {lhs} to {rhs} for the modes ...
uuu's user avatar
  • 303
1 vote
1 answer
96 views

Give key binding absolute priority [duplicate]

I'd like to use M-<arrows> to move around windows in Emacs gtk, so I have added (windmove-default-keybindings 'meta) to my init.el. However, this is overridden by other modes such as elpy. Is ...
Marco Venuti's user avatar
11 votes
3 answers
4k views

Auto enable minor modes in fundamental-mode

By design, the fundamental-mode is bare bones as other major modes are supposed to derive from this one. From the info page (elisp) Major Modes, we have: This is the major mode command for ...
Kaushal Modi's user avatar
  • 25.7k
4 votes
3 answers
814 views

AceJump key bindings not working in org-mode

My ace-jump-mode bindings don't seem to work when I'm editing in org-mode. This is how I define them in my .emacs. (progn (require 'ace-jump-mode) ...
Marcus Junius Brutus's user avatar
7 votes
1 answer
2k views

Disable org-mode keyboard shortcuts

Is there a simple way (e.g. customization option) to disable some of org-mode's keyboard shortcuts? I normally use shift-right_arrow or shift-left_arrow to select text (expand region), but in org-mode ...
NVaughan's user avatar
  • 1,481
4 votes
1 answer
2k views

How to override org-mode-map key bindings?

I would like to override the C-c C-j keybinding. I put this in my init file (global-set-key (kbd "C-c C-j") 'counsel-org-goto) However, it won't override the command org-goto (found in org-...
Adelita's user avatar
  • 255
2 votes
3 answers
2k views

Disabling arrow keys in Emacs EVIL Mode

I wanted to disable arrow keys in my Emacs to practice vim key bindings using EVIL mode. So instead of using global-unset-key as someone here on stackexchange suggested. I used the following code in ...
Panch93's user avatar
  • 265
2 votes
1 answer
3k views

How do I override a key binding defined by `evil-mode`?

I've searched for this before but I've only seen questions like the below: https://stackoverflow.com/questions/683425/globally-override-key-binding-in-emacs How to override major mode bindings I don'...
Chris Stryczynski's user avatar
2 votes
1 answer
988 views

Remove key binding in magit-status-mode

I have C-RET set to other-window globally. For modes that would override this I manually add a hook to the mode's key map, e.g. (add-hook 'magit-log-mode-hook (lambda () (local-unset-key (kbd "<C-...
malana's user avatar
  • 21
2 votes
2 answers
739 views

Making Keys Pass Completely Through Emacs

An Autohotkey remapping script I'm using uses the function keys F13-F24 to keep track of layers. This means that {F13 Down}, for example, may get sent as a virtual key code. This works fine for most ...
Steven Tammen's user avatar
1 vote
1 answer
258 views

How to redefine prefix key in org mode?

I have rebound C-u to another function, and try to use C-j for the prefix, but now it seems I cannot use the prefix in org-mode. It does seem to work in other modes though. ; This is the relevant part ...
cammil's user avatar
  • 509
0 votes
0 answers
387 views

"No such file or directory, bind-key" after installing use-package [duplicate]

I'm using Emacs on Windows 10. I want to override key bindings, so after reading How to override major mode bindings, I installed use-package with the built-in package manager (via M-x package-install ...
user19551's user avatar
  • 101
0 votes
1 answer
85 views

Magit: How disable C-<tab>?

windows 10, emacs 26.1, I use package magit to work with git. Nice. When I press C-<tab> is collapse/expand recent commits: Nice. But if I press <tab> magit do same thing as when I ...
a_subscriber's user avatar
  • 4,174

15 30 50 per page