From d1c2a4446a40da3c0f8dfc68ce78593c5a847d43 Mon Sep 17 00:00:00 2001 From: Compro-Prasad Date: Tue, 28 Jul 2020 20:48:30 +0530 Subject: [PATCH] [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. --- core/core-ui.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/core-ui.el b/core/core-ui.el index c4d3ef385..7ab7dbc4d 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -391,6 +391,10 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original (setq ansi-color-for-comint-mode t) +(after! comint + (setq comint-prompt-read-only t)) + + (after! compile (setq compilation-always-kill t ; kill compilation process before starting another compilation-ask-about-save nil ; save all buffers on `compile'