feat(lib): doom-org-docs-mode: bind q to kill-current-buffer
For consistency with other help modes. Fix: #7985
This commit is contained in:
parent
b1b40754fe
commit
a6df88a56a
1 changed files with 7 additions and 0 deletions
|
@ -485,6 +485,13 @@ This primes `org-mode' for reading."
|
|||
("" 'warning))))
|
||||
"Extra font-lock keywords for Doom documentation.")
|
||||
|
||||
(defvar doom-docs-org-mode-map
|
||||
(let ((map (make-sparse-keymap))
|
||||
(cmd (cmds! buffer-read-only #'kill-current-buffer)))
|
||||
(define-key map "q" cmd)
|
||||
(define-key map [remap evil-record-macro] cmd)
|
||||
map))
|
||||
|
||||
;;;###autoload
|
||||
(define-derived-mode doom-docs-org-mode org-mode "Doom Docs"
|
||||
"A derivative of `org-mode' for Doom's documentation files.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue