aboutsummaryrefslogtreecommitdiff
path: root/create-license.el
diff options
context:
space:
mode:
Diffstat (limited to 'create-license.el')
-rw-r--r--create-license.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/create-license.el b/create-license.el
index ba108ba..2f828c3 100644
--- a/create-license.el
+++ b/create-license.el
@@ -48,7 +48,12 @@ dot."
:group 'create-license
:type 'string)
-(defcustom create-license-hook nil
+(defun create-license--dired-update ()
+ "Revert the current buffer if it is a `dired' buffer."
+ (when (eq major-mode 'dired-mode)
+ (revert-buffer)))
+
+(defcustom create-license-hook '(create-license--dired-update)
"Hook run after `create-license'.
Functions in this hook are called with no arguments."