Skip to main content

Questions tagged [bind-key.el]

Filter by
Sorted by
Tagged with
0 votes
1 answer
787 views

bind-keys with a macro for lambda functions

I am trying to bind keys to a lambda function using bind-key.el. I have the following factor macro ;; taken from Emacs Doom (defmacro cmd! (&rest body) (declare (doc-string 1) (pure t) (side-...
Tohiko's user avatar
  • 1,659
0 votes
0 answers
30 views

bind-key works but not bind-keys

I am having an issue with bind-key where the following command works (bind-key* "s-c q" #'quick-calc) but (bind-keys* ("s-c q" . #'quick-calc)) does not. Instead I get the error ...
Tohiko's user avatar
  • 1,659
0 votes
1 answer
140 views

How to redefine key binding for "C-m" without clobbering <return>? [duplicate]

I am trying to remap "C-m" but it seems to prevent from working. It actually seems to make the same as "C-m". I have no idea why. I have tried this, which causes the problem: (bind-keys :map ...
cammil's user avatar
  • 509
1 vote
0 answers
304 views

use-package do not bind in latex-mode-map

this is a part of my init file (use-package tex-site :ensure auctex :mode ("\\.tex\\'" . latex-mode) :bind (:map LaTeX-mode-map ("<f5> <f5>" . TeX-command-save-buffer-and-...
gigiair's user avatar
  • 2,253
0 votes
0 answers
388 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
1 vote
1 answer
218 views

How to make exceptions to bind-key* overriding behavior?

I like binding M-n to make-frame, so I have the following in my init file: (bind-key* "M-n" 'make-frame) The * form of bind-key allows me to override other minor-mode M-n bindings. But when I'm ...
ivan's user avatar
  • 1,948
5 votes
2 answers
2k views

how to define bindings for multiple keymaps with bind-keys?

I use bind-key and I haven't found anything else that convenient for organizing key bindings. However sometimes I want to bind some commands for more keymaps than one. That's the way I do it now for ...
bertfred's user avatar
  • 1,739