shell layer: disable auto-jump to prompt when em-smart is enabled
This commit is contained in:
parent
4770263fdf
commit
aa2ccced10
|
@ -63,8 +63,12 @@
|
||||||
(defun spacemacs//init-eshell ()
|
(defun spacemacs//init-eshell ()
|
||||||
"Stuff to do when enabling eshell."
|
"Stuff to do when enabling eshell."
|
||||||
(setq pcomplete-cycle-completions nil)
|
(setq pcomplete-cycle-completions nil)
|
||||||
|
(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
|
(add-hook 'evil-insert-state-entry-hook
|
||||||
'spacemacs//eshell-auto-end nil t)
|
'spacemacs//eshell-auto-end nil t))
|
||||||
(when (configuration-layer/package-usedp 'semantic)
|
(when (configuration-layer/package-usedp 'semantic)
|
||||||
(semantic-mode -1)))
|
(semantic-mode -1)))
|
||||||
(add-hook 'eshell-mode-hook 'spacemacs//init-eshell))
|
(add-hook 'eshell-mode-hook 'spacemacs//init-eshell))
|
||||||
|
|
Loading…
Reference in a new issue