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:
parent
5a5195b84d
commit
e61441af52
1 changed files with 15 additions and 10 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue