emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/haskell-mode 0997b0e4b2 1/2: Define haskell-mode-hook befo


From: ELPA Syncer
Subject: [nongnu] elpa/haskell-mode 0997b0e4b2 1/2: Define haskell-mode-hook before haskell-mode
Date: Sun, 13 Nov 2022 09:58:50 -0500 (EST)

branch: elpa/haskell-mode
commit 0997b0e4b2b6294b75c6d39fae858b354251d729
Author: Jade Hagborg <jhagborg@quasicoherent.solutions>
Commit: Jade Hagborg <jhagborg@quasicoherent.solutions>

    Define haskell-mode-hook before haskell-mode
    
    If `define-derived-mode haskell-mode` comes before `defcustom
    haskell-mode-hook`, custom will report `haskell-mode-hook` as being
    changed outside of customize.  This prevents customizations from
    taking effect.  Swapping the order of definitions fixes this.
---
 haskell-mode.el | 40 ++++++++++++++++++++--------------------
 1 file changed, 20 insertions(+), 20 deletions(-)

diff --git a/haskell-mode.el b/haskell-mode.el
index 7e8f644cf1..bfbf0fbd68 100644
--- a/haskell-mode.el
+++ b/haskell-mode.el
@@ -743,6 +743,26 @@ Prefix ARG is handled as per `delete-indentation'."
       (funcall #'electric-pair-default-inhibit ch)))
 
 ;; The main mode functions
+(defcustom haskell-mode-hook '(haskell-indentation-mode 
interactive-haskell-mode)
+  "List of functions to run after `haskell-mode' is enabled.
+
+Use to enable minor modes coming with `haskell-mode' or run an
+arbitrary function.
+
+Note that  `haskell-indentation-mode' and `haskell-indent-mode' should not be
+run at the same time."
+  :group 'haskell
+  :type 'hook
+  :options '(capitalized-words-mode
+             flyspell-prog-mode
+             haskell-decl-scan-mode
+             haskell-indent-mode
+             haskell-indentation-mode
+             highlight-uses-mode
+             imenu-add-menubar-index
+             interactive-haskell-mode
+             turn-on-haskell-unicode-input-method))
+
 ;;;###autoload
 (define-derived-mode haskell-mode prog-mode "Haskell"
   "Major mode for editing Haskell programs.
@@ -859,26 +879,6 @@ Minor modes that work well with `haskell-mode':
 
   (haskell-indentation-mode))
 
-(defcustom haskell-mode-hook '(haskell-indentation-mode 
interactive-haskell-mode)
-  "List of functions to run after `haskell-mode' is enabled.
-
-Use to enable minor modes coming with `haskell-mode' or run an
-arbitrary function.
-
-Note that  `haskell-indentation-mode' and `haskell-indent-mode' should not be
-run at the same time."
-  :group 'haskell
-  :type 'hook
-  :options '(capitalized-words-mode
-             flyspell-prog-mode
-             haskell-decl-scan-mode
-             haskell-indent-mode
-             haskell-indentation-mode
-             highlight-uses-mode
-             imenu-add-menubar-index
-             interactive-haskell-mode
-             turn-on-haskell-unicode-input-method))
-
 (defun haskell-fill-paragraph (justify)
   (save-excursion
     ;; Fill paragraph should only work in comments.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]