Linked Questions

2
votes
3answers
756 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-...
0
votes
1answer
120 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 ...
1
vote
1answer
67 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 ...
9
votes
3answers
3k 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 ...
4
votes
3answers
688 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) ...
7
votes
1answer
1k 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 ...
2
votes
3answers
1k 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 ...
2
votes
1answer
672 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-...
1
vote
1answer
1k views

How do I override a keybinding 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'...
2
votes
2answers
368 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 ...
0
votes
0answers
338 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 ...
0
votes
1answer
67 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 ...
1
vote
1answer
39 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 ...
1
vote
1answer
38 views

How to change keybinding for all similar functions across all modes?

Suppose I rebind C-e (move-end-of-line) to C-o in the global-map. How can I make C-o the corresponding function in all modes (if it exists). So, for example, in org-mode C-o should be org-end-of-...
0
votes
0answers
25 views

emacs -nw set key-bindings similar to those of emacs-gui

In emacs -nw, many shortcuts are bound to something different from the "classical" emacs-gui. For instance: \C-_ is bound to DEL (classically it is undo) backspace is \C-h thus opens help ...

15 30 50 per page