Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
36 views

How to switch Ctrl-a and Home in Eshell?

I tried the following, but it does not work: (add-hook 'eshell-mode-hook (lambda () (local-set-key (kbd "C-a") #'move-beginning-of-line) (local-set-key (kbd ...
ceving's user avatar
  • 1,388
1 vote
0 answers
131 views

How can I temporarily disable all (other) key bindings?

How can I write a command, and bind it to a key, so that when invoked it disables all key bindings other than the current key, until that same key binding is pressed again? The goal is to facilitate ...
Dan's user avatar
  • 11
1 vote
1 answer
126 views

Why do these two different use-package declarations (for the same package) have different effects?

What I want to accomplish is to add a keybinding C-<backspace> to the eshell-mod-map that calls func. That can be done like this, (use-package eshell :init (defun add-func-keybinding () (...
scribe's user avatar
  • 1,090
2 votes
2 answers
493 views

Is there a better way of writing this with use-package?

I feel like there is a better way of writing this with use-package but I just can't get the usual way to work. (use-package eshell :hook (eshell-mode . (lambda () (define-key ...
scribe's user avatar
  • 1,090
0 votes
3 answers
794 views

pdb within eshell up/down keys dont work

I am running python3 in eshell. When I use import pdb; pdb.set_trace() in my code, pdb opens within eshell. Everything works in pdb but the up/down keys don't work for running the previous command. ...
Rahul's user avatar
  • 51
1 vote
1 answer
1k views

Define custom keys only for eshell

I'm struggling to find a way to define keys only for eshell. Looking at the emacs wiki I saw examples using the eshell-mode-map yet I get errors when trying to define it. progn: Symbol’s value as ...
zeltak's user avatar
  • 1,745