doomemacs/init/init-shell.el

25 lines
719 B
EmacsLisp
Raw Normal View History

2014-09-06 05:08:40 +08:00
(provide 'init-shell)
2014-08-10 07:25:06 +08:00
(setq shell-file-name "zsh")
(setq comint-process-echoes t)
(setq comint-prompt-regexp "^$ ")
(setq comint-input-ignoredups t)
(setq comint-completion-addsuffix t)
(setq comint-prompt-read-only t)
(setq comint-get-old-input (lambda () ""))
;; Setup auto-complete-esque path completion
(add-to-list 'ac-modes 'shell-mode)
(add-hook 'shell-mode-hook (lambda ()
(linum-mode 0)
(yas-minor-mode -1)
(enable-path-completion)
;; I want ac to silently offer completion, but leave
;; the actual tab-work to the underlying shell (ZSH is
;; powerful enough!)
(local-unset-key [tab])
(evil-define-key 'normal shell-mode-map "j" nil)
2014-09-06 05:08:40 +08:00
(evil-define-key 'normal shell-mode-map "k" nil)))