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:
Henrik Lissner 2024-08-08 16:44:22 -04:00
parent b1b40754fe
commit a6df88a56a
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -485,6 +485,13 @@ This primes `org-mode' for reading."
("" 'warning)))) ("" 'warning))))
"Extra font-lock keywords for Doom documentation.") "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 ;;;###autoload
(define-derived-mode doom-docs-org-mode org-mode "Doom Docs" (define-derived-mode doom-docs-org-mode org-mode "Doom Docs"
"A derivative of `org-mode' for Doom's documentation files. "A derivative of `org-mode' for Doom's documentation files.