Protect prompt in comint-mode
This commit is contained in:
parent
d99259bcd5
commit
07e5a0ca9d
1 changed files with 7 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
||||||
company
|
company
|
||||||
helm
|
helm
|
||||||
multi-term
|
multi-term
|
||||||
|
(comint :location built-in)
|
||||||
shell
|
shell
|
||||||
shell-pop
|
shell-pop
|
||||||
term
|
term
|
||||||
|
@ -207,6 +208,12 @@ is achieved by adding the relevant text properties."
|
||||||
(projectile-with-default-dir (projectile-project-root) (multi-term)))
|
(projectile-with-default-dir (projectile-project-root) (multi-term)))
|
||||||
(spacemacs/set-leader-keys "p$t" 'projectile-multi-term-in-root)))))
|
(spacemacs/set-leader-keys "p$t" 'projectile-multi-term-in-root)))))
|
||||||
|
|
||||||
|
(defun shell/init-comint ()
|
||||||
|
(use-package comint
|
||||||
|
:defer t
|
||||||
|
:init
|
||||||
|
(setq comint-prompt-read-only t)))
|
||||||
|
|
||||||
(defun shell/init-shell ()
|
(defun shell/init-shell ()
|
||||||
(defun shell-comint-input-sender-hook ()
|
(defun shell-comint-input-sender-hook ()
|
||||||
"Check certain shell commands.
|
"Check certain shell commands.
|
||||||
|
|
Reference in a new issue