From a71131b26869795c1408ccf0f1bea5eefce95a15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arthur=20Fayzrakhmanov=20=28=D0=90=D1=80=D1=82=D1=83=D1=80?= =?UTF-8?q?=20=D0=A4=D0=B0=D0=B9=D0=B7=D1=80=D0=B0=D1=85=D0=BC=D0=B0=D0=BD?= =?UTF-8?q?=D0=BE=D0=B2=29?= Date: Sun, 21 Jun 2015 00:17:03 +0500 Subject: [PATCH] Turn few customizable options to variables Turn `haskell-ghc-supported-extensions` and `haskell-ghc-supported-options` into variable, move them outside customize package to haskell-mode one. Update doc strings a bit. --- haskell-customize.el | 11 ----------- haskell-mode.el | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/haskell-customize.el b/haskell-customize.el index bc37cd597..869311eb2 100644 --- a/haskell-customize.el +++ b/haskell-customize.el @@ -336,17 +336,6 @@ same vein as `haskell-indent-spaces'." :group 'haskell :type '(repeat 'string)) -(defcustom haskell-ghc-supported-extensions - (split-string (shell-command-to-string "ghc --supported-extensions")) - "List of language extensions supported by the installed version of GHC." - :group 'haskell - :type '(repeat string)) - -(defcustom haskell-ghc-supported-options - (split-string (shell-command-to-string "ghc --show-options")) - "List of options supported by the installed version of GHC." - :group 'haskell - :type '(repeat string)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Accessor functions diff --git a/haskell-mode.el b/haskell-mode.el index ca6f9a540..0bc555a4a 100644 --- a/haskell-mode.el +++ b/haskell-mode.el @@ -202,6 +202,20 @@ be set to the preferred literate style." map) "Keymap used in Haskell mode.") + +(defvar haskell-ghc-supported-extensions + (split-string (shell-command-to-string "ghc --supported-extensions")) + "List of language extensions supported by the installed version of GHC. +This list comes from default system's GHC, i.e. first `ghc` +executable found in PATH.") + +(defvar haskell-ghc-supported-options + (split-string (shell-command-to-string "ghc --show-options")) + "List of options supported by the installed version of GHC. +This list comes from default system's GHC, i.e. first `ghc` +executable found in PATH.") + + (defun haskell-mode-enable-process-minor-mode () "Tell the user to choose a minor mode for process interaction." (interactive)