summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-04-30 20:34:35 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-04-30 20:34:35 +0200
commit95dbe4b6ae2e88213835a8ded3928b6769d78f2c (patch)
tree12b1de7997de1b594ceb0cf9b09f129db4ed180c
parent0ea217d6464833b5c67666d9fed15b87884b0988 (diff)
downloademacs-95dbe4b6ae2e88213835a8ded3928b6769d78f2c.tar.gz
Make load-path-shadows-mode a special mode
* lisp/emacs-lisp/shadow.el (load-path-shadows-mode): Make the mode inherit from special-mode so that the `q' command works.
-rw-r--r--lisp/emacs-lisp/shadow.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/shadow.el b/lisp/emacs-lisp/shadow.el
index 8cd371321ae..2343a9b589f 100644
--- a/lisp/emacs-lisp/shadow.el
+++ b/lisp/emacs-lisp/shadow.el
@@ -177,12 +177,11 @@ See the documentation for `list-load-path-shadows' for further information."
. (1 font-lock-warning-face)))
"Keywords to highlight in `load-path-shadows-mode'.")
-(define-derived-mode load-path-shadows-mode fundamental-mode "LP-Shadows"
+(define-derived-mode load-path-shadows-mode special-mode "LP-Shadows"
"Major mode for `load-path' shadows buffer."
(setq-local font-lock-defaults
'((load-path-shadows-font-lock-keywords)))
- (setq buffer-undo-list t
- buffer-read-only t))
+ (setq buffer-undo-list t))
;; TODO use text-properties instead, a la dired.
(define-button-type 'load-path-shadows-find-file