Skip to content

Commit

Permalink
Merge pull request #30 from mineo/reload-all
Browse files Browse the repository at this point in the history
Implement yatemplate-reload-all
  • Loading branch information
mineo authored Nov 15, 2021
2 parents 4bd8b82 + 492d7f6 commit 275745c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion yatemplate-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
(defun yatemplates ()
"Regenerate `auto-insert-alist' and return all our entries."
(shut-up
(yatemplate-fill-alist))
(yatemplate-reload-all))
(yatemplate-entries))

(defun touch (filename)
Expand Down
6 changes: 6 additions & 0 deletions yatemplate.el
Original file line number Diff line number Diff line change
Expand Up @@ -172,5 +172,11 @@ Particularly useful when combined with `.dir-locals.el'.")
(remove-hook 'after-save-hook 'yatemplate--after-save-hook)
(yatemplate-remove-old-yatemplates-from-alist))

(defun yatemplate-reload-all ()
"Reload all templates."
(interactive)
(yatemplate-remove-old-yatemplates-from-alist)
(yatemplate-fill-alist))

(provide 'yatemplate)
;;; yatemplate.el ends here

0 comments on commit 275745c

Please sign in to comment.