shell layer: disable auto-jump to prompt when em-smart is enabled

This commit is contained in:
syl20bnr 2015-07-08 01:06:38 -04:00
parent 4770263fdf
commit aa2ccced10

View file

@ -63,8 +63,12 @@
(defun spacemacs//init-eshell ()
"Stuff to do when enabling eshell."
(setq pcomplete-cycle-completions nil)
(add-hook 'evil-insert-state-entry-hook
'spacemacs//eshell-auto-end nil t)
(unless shell-enable-smart-eshell
;; we don't want auto-jump to prompt when smart eshell is enabled.
;; Idea: maybe we could make auto-jump smarter and jump only if the
;; point is not on a prompt line
(add-hook 'evil-insert-state-entry-hook
'spacemacs//eshell-auto-end nil t))
(when (configuration-layer/package-usedp 'semantic)
(semantic-mode -1)))
(add-hook 'eshell-mode-hook 'spacemacs//init-eshell))