summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--emacs.d/init.el27
1 files changed, 27 insertions, 0 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el
index d0510e9..9b7132a 100644
--- a/emacs.d/init.el
+++ b/emacs.d/init.el
@@ -42,6 +42,33 @@
   :config
   (setq dired-listing-switches "-laGhv"))
 
+(use-package lisp-mode
+  :config
+  (add-hook 'emacs-lisp-mode-hook
+            (lambda()
+              (setq mode-name "λ"))))
+
+;; eshell configuration
+(use-package eshell
+  :ensure t
+  :bind ("C-x e" . eshell)
+  :init
+  (progn
+    (add-hook 'eshell-mode-hook '(lambda ()(exec-path-from-shell-initialize)))
+    (add-hook 'eshell-mode-hook (lambda ()
+                                  (setenv "PAGER" "less")
+                                  (setenv "EDITOR" "emacsclient"))))
+
+  :config
+  (progn
+    (setq eshell-aliases-file "~/.emacs.d/var/eshell/aliases")
+    (use-package em-term
+      :defer t
+      :config
+      (setq eshell-destroy-buffer-when-process-dies t
+            eshell-visual-commands
+            (append '("less" "tmux" "ssh" "htop" "top") eshell-visual-commands)))))
+
 ;; environment fixup for macOS.
 (use-package exec-path-from-shell
   :ensure t