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:
Tom Willemse 2016-11-09 14:58:56 +01:00
parent 7f1573b91a
commit c8f73dedb2

View file

@ -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