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.
This commit is contained in:
parent
0ea217d646
commit
95dbe4b6ae
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue