Fix eshell keybinding
For some reason the ‘eshell-mode-map’ isn’t defined the first time the ‘eshell-load-hook’ runs.
This commit is contained in:
parent
7f1573b91a
commit
c8f73dedb2
1 changed files with 1 additions and 1 deletions
|
@ -42,5 +42,5 @@ buffer.
|
||||||
(defun oni:set-eshell-C-d ()
|
(defun oni:set-eshell-C-d ()
|
||||||
(define-key eshell-mode-map (kbd "C-d") #'oni:eshell-C-d))
|
(define-key eshell-mode-map (kbd "C-d") #'oni:eshell-C-d))
|
||||||
|
|
||||||
(add-hook 'eshell-load-hook #'oni:set-eshell-C-d)
|
(add-hook 'eshell-first-time-mode-hook #'oni:set-eshell-C-d)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
Loading…
Reference in a new issue