From e61441af5219ea02a634cd101b8dd150359bd1b6 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 23 Sep 2022 19:32:34 +0200 Subject: [PATCH] refactor: use defcustom to define doom-first-*-hook This will soon be done by convention for variables Doom expects users to customize. --- lisp/doom-start.el | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/lisp/doom-start.el b/lisp/doom-start.el index 199791ce9..60685b409 100644 --- a/lisp/doom-start.el +++ b/lisp/doom-start.el @@ -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) ;;