refactor: use defcustom to define doom-first-*-hook

This will soon be done by convention for variables Doom expects users to
customize.
This commit is contained in:
Henrik Lissner 2022-09-23 19:32:34 +02:00
parent 5a5195b84d
commit e61441af52
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -2,21 +2,26 @@
;;; Commentary: ;;; Commentary:
;;; Code: ;;; Code:
;; ;;
;;; Custom hooks ;;; Custom hooks
(defvar doom-first-input-hook nil (defcustom doom-first-input-hook ()
"Transient hooks run before the first user input.") "Transient hooks run before the first user input."
(put 'doom-first-input-hook 'permanent-local t) :type 'hook
:local 'permenant-local
:group 'doom)
(defvar doom-first-file-hook nil (defcustom doom-first-file-hook ()
"Transient hooks run before the first interactively opened file.") "Transient hooks run before the first interactively opened file."
(put 'doom-first-file-hook 'permanent-local t) :type 'hook
:local 'permenant-local
:group 'doom)
(defvar doom-first-buffer-hook nil (defcustom doom-first-buffer-hook ()
"Transient hooks run before the first interactively opened buffer.") "Transient hooks run before the first interactively opened buffer."
(put 'doom-first-buffer-hook 'permanent-local t) :type 'hook
:local 'permenant-local
:group 'doom)
;; ;;