summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2016-10-29 13:13:42 -0700
committerFranck Cuny <franck.cuny@gmail.com>2016-10-29 13:13:42 -0700
commit6ac546d47f4dbc904668c783344a145f76b07068 (patch)
treee916e9b52e5a11d66d131248f5209586f4f3a304
parent[emacs] Fix for `exec-path-from-shell'. (diff)
downloademacs.d-6ac546d47f4dbc904668c783344a145f76b07068.tar.gz
[emacs] Add settings for `eshell' and `lisp-mode'.
-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