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:
;;; Code:
;;
;;; Custom hooks
(defvar doom-first-input-hook nil
"Transient hooks run before the first user input.")
(put 'doom-first-input-hook 'permanent-local t)
(defcustom doom-first-input-hook ()
"Transient hooks run before the first user input."
:type 'hook
:local 'permenant-local
:group 'doom)
(defvar doom-first-file-hook nil
"Transient hooks run before the first interactively opened file.")
(put 'doom-first-file-hook 'permanent-local t)
(defcustom doom-first-file-hook ()
"Transient hooks run before the first interactively opened file."
:type 'hook
:local 'permenant-local
:group 'doom)
(defvar doom-first-buffer-hook nil
"Transient hooks run before the first interactively opened buffer.")
(put 'doom-first-buffer-hook 'permanent-local t)
(defcustom doom-first-buffer-hook ()
"Transient hooks run before the first interactively opened buffer."
:type 'hook
:local 'permenant-local
:group 'doom)
;;