[UI] Set prompt to readonly in comint buffers

Comint buffers like *Python*, *shell*, etc. will benifit from this
change as the prompt wont be deletable.
This commit is contained in:
Compro-Prasad 2020-07-28 20:48:30 +05:30
parent 126461d4ad
commit d1c2a4446a
No known key found for this signature in database
GPG key ID: ACBA2BF9A4FF7A01

View file

@ -391,6 +391,10 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original
(setq ansi-color-for-comint-mode t) (setq ansi-color-for-comint-mode t)
(after! comint
(setq comint-prompt-read-only t))
(after! compile (after! compile
(setq compilation-always-kill t ; kill compilation process before starting another (setq compilation-always-kill t ; kill compilation process before starting another
compilation-ask-about-save nil ; save all buffers on `compile' compilation-ask-about-save nil ; save all buffers on `compile'