summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2015-08-07 20:24:31 +0200
committerAlan Pearce2015-08-07 20:24:31 +0200
commit7ab1d790109e523392be25f23d0aaa8bb3e9a2e8 (patch)
tree8e09787cffae8f224b62d842a25a66d4815a9352
parent9bc83aae9988f3229cf1dd1e50d33e4b5df8596d (diff)
downloadnixfiles-7ab1d790109e523392be25f23d0aaa8bb3e9a2e8.tar.lz
nixfiles-7ab1d790109e523392be25f23d0aaa8bb3e9a2e8.tar.zst
nixfiles-7ab1d790109e523392be25f23d0aaa8bb3e9a2e8.zip
Emacs: Fix eshell configuration
-rw-r--r--tag-emacs/emacs.d/init.org45
1 files changed, 25 insertions, 20 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index 476872df..7522d1fa 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -2099,26 +2099,31 @@ I should try to get into the habit of using this more.  It’s really
 nice, when I remember to use it.
 
 #+BEGIN_SRC emacs-lisp
-(req-package eshell
-  :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
-              :config (progn
-                        (setq eshell-where-to-jump 'begin
-                              eshell-review-quick-commands nil
-                              eshell-smart-space-goes-to-end t)
-                        (eshell-smart-initialize)))))
-
-(autoload #'eshell/cd "em-dirs")
-(defun eshell-goto-current-dir (&optional arg)
-  (interactive "P")
-  (let ((dir default-directory))
-    (eshell arg)
-    (eshell/cd dir)))
-(bind-key "C-c S" #'eshell-goto-current-dir)
+  (req-package eshell
+    :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
+    :require eshell
+    :init (progn
+            (add-hook 'eshell-load-hook #'eshell-smart-initialize))
+    :config (progn
+              (setq eshell-where-to-jump 'begin
+                    eshell-review-quick-commands nil
+                    eshell-smart-space-goes-to-end t)))
+
+  (autoload #'eshell/cd "em-dirs")
+  (defun eshell-goto-current-dir (&optional arg)
+    (interactive "P")
+    (let ((dir default-directory))
+      (eshell arg)
+      (eshell/cd dir)))
+  (bind-key "C-c S" #'eshell-goto-current-dir)
+
+
 #+END_SRC
 
 #+BEGIN_SRC emacs-lisp