Emacs: Make comint prompt read-only

master
Pierre Neidhardt 2017-07-28 17:22:59 +01:00
parent cab775a011
commit e912eedce6
1 changed files with 3 additions and 0 deletions

View File

@ -207,6 +207,9 @@
;; Do not use `recompile' since we want to change de compilation folder to the current buffer.
"<f6>" (lambda () (interactive) (compile compile-command)))
;;; Comint mode
(setq comint-prompt-read-only t)
(defadvice desktop-owner (after pry-from-cold-dead-hands activate)
"Don't allow dead emacsen to own the desktop file."
(when (not (emacs-process-p ad-return-value))