branch: externals/ef-themes
commit 1d2544f0c860eca1e1bfad7d0bafc265c9383d2e
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Move hook declaration further up
---
ef-themes.el | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/ef-themes.el b/ef-themes.el
index ac18f4c1aa..ab2a8f033f 100644
--- a/ef-themes.el
+++ b/ef-themes.el
@@ -46,6 +46,14 @@
:prefix "ef-themes-"
:tag "Ef Themes")
+;;; Use options
+
+(defcustom ef-themes-post-load-hook nil
+ "Hook that runs after loading an Ef theme.
+This is used by the commands `ef-themes-select' and
+`ef-themes-load-random'."
+ :type 'hook
+ :group 'ef-themes)
;;; Commands and their helper functions
(defconst ef-themes-light-themes '( ef-day ef-light ef-spring ef-summer
@@ -105,13 +113,6 @@
nil t nil
'ef-themes--select-theme-history))
-(defcustom ef-themes-post-load-hook nil
- "Hook that runs after loading an Ef theme.
-This is used by the commands `ef-themes-select' and
-`ef-themes-load-random'."
- :type 'hook
- :group 'ef-themes)
-
(defun ef-themes--load-theme (theme)
"Load THEME while disabling other Ef themes.
Run `ef-themes-post-load-hook'."