doomemacs/modules/module-eshell.el

38 lines
1.1 KiB
EmacsLisp
Raw Normal View History

2015-06-15 09:06:10 +02:00
;;; module-eshell.el
(use-package eshell
2015-07-17 12:08:01 +02:00
:when IS-WINDOWS
2015-06-15 09:06:10 +02:00
:init
2016-05-24 22:15:44 -04:00
(evil-set-initial-state 'eshell-mode 'emacs)
2016-05-20 22:37:30 -04:00
(setq eshell-directory-name (concat doom-temp-dir "/eshell")
2015-06-15 09:06:10 +02:00
eshell-scroll-to-bottom-on-input 'all
eshell-buffer-shorthand t
;; em-glob
eshell-glob-case-insensitive t
eshell-error-if-no-glob t
2016-05-24 22:15:44 -04:00
eshell-where-to-jump 'end
2015-06-15 09:06:10 +02:00
;; em-alias
2016-05-20 22:37:30 -04:00
eshell-aliases-file (concat doom-temp-dir "/.eshell-aliases"))
2015-06-15 09:06:10 +02:00
2016-05-24 21:57:25 -04:00
:config
(def-popup! eshell-mode :frame t :select t)
2015-06-15 09:06:10 +02:00
;; plan 9 smart shell
(require 'em-smart)
2016-05-24 22:15:44 -04:00
(push 'eshell-smart eshell-modules-list)
2015-06-15 09:06:10 +02:00
(setq eshell-where-to-jump 'begin)
(setq eshell-review-quick-commands nil)
(setq eshell-smart-space-goes-to-end t)
;; em-prompt
2016-05-20 22:37:30 -04:00
(setq eshell-prompt-function 'doom/eshell-prompt)
(map! :map eshell-mode-map
2016-05-20 22:37:30 -04:00
:n "i" 'doom/eshell-evil-prepend-maybe
:n "I" 'doom/eshell-evil-prepend
:n "a" 'doom/eshell-evil-append-maybe
:n "A" 'doom/eshell-evil-append
:n "r" 'doom/eshell-evil-replace-maybe
:n "R" 'doom/eshell-evil-replace-state-maybe))
2015-06-15 09:06:10 +02:00
(provide 'module-eshell)
;;; module-eshell.el ends here