From 6ac546d47f4dbc904668c783344a145f76b07068 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 29 Oct 2016 13:13:42 -0700 Subject: [emacs] Add settings for `eshell' and `lisp-mode'. --- emacs.d/init.el | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) 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 -- cgit 1.4.1