summary refs log tree commit diff stats
path: root/tag-emacs/emacs.d/init.el
diff options
context:
space:
mode:
authorAlan Pearce2014-09-06 12:54:29 +0100
committerAlan Pearce2014-09-06 12:54:29 +0100
commit026c476e282515694ab475954488ae28ce661d47 (patch)
tree813dc451262a8495b70cb5941e88a7d3c05253b4 /tag-emacs/emacs.d/init.el
parent7a9efc6c9276733b0496725725448445e4420f82 (diff)
downloadnixfiles-026c476e282515694ab475954488ae28ce661d47.tar.lz
nixfiles-026c476e282515694ab475954488ae28ce661d47.tar.zst
nixfiles-026c476e282515694ab475954488ae28ce661d47.zip
Emacs: Fix startup error from eshell keybind
Really weird that I needed to bind the key inside a hook, anything else
seemed to get evaluated before eshell was loaded
Diffstat (limited to 'tag-emacs/emacs.d/init.el')
-rw-r--r--tag-emacs/emacs.d/init.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index e679f74d..4fc9a70a 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -942,6 +942,8 @@ mouse-1: Display Line and Column Mode Menu"))))))
   :bind ("C-c s" . eshell)
   :config (progn
             (setq eshell-directory-name "~/.emacs.d/eshell")
+            (add-hook 'eshell-load-hook (lambda ()
+                                          (bind-key "C-c C-l" #'helm-eshell-history eshell-mode-map)))
             (req-package em-smart
               :init (progn
                       (setq eshell-where-to-jump 'begin