summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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