[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote a8cb0bae10 3/3: Make denote-after-new-note-hook
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote a8cb0bae10 3/3: Make denote-after-new-note-hook a defcustom for better discoverability |
Date: |
Mon, 18 Sep 2023 09:57:43 -0400 (EDT) |
branch: externals/denote
commit a8cb0bae10fd7a87e485a47b68b49ce039242079
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Make denote-after-new-note-hook a defcustom for better discoverability
---
denote.el | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/denote.el b/denote.el
index 782737b94d..3890362c61 100644
--- a/denote.el
+++ b/denote.el
@@ -445,6 +445,12 @@ The match is performed with `string-match-p'."
:package-version '(denote . "1.2.0")
:type 'string)
+(defcustom denote-after-new-note-hook nil
+ "Normal hook that runs after the `denote' command."
+ :group 'denote
+ :package-version '(denote . "2.1.0")
+ :type 'hook)
+
;;;; Main variables
;; For character classes, evaluate: (info "(elisp) Char Classes")
@@ -1668,9 +1674,6 @@ The meaning of FILES is the same as in
`denote--id-exists-p'."
;;;;; The `denote' command and its prompts
-(defvar denote-after-new-note-hook nil
- "Normal hook that runs after the `denote' command.")
-
;;;###autoload
(defun denote (&optional title keywords file-type subdirectory date template
signature)
"Create a new note with the appropriate metadata and file name.