Skip to content

Fix haskell-customize step #1 #794

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 3, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ghc-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,21 @@
(require 'haskell-mode)
(require 'haskell-font-lock)

;;;###autoload
(defgroup ghc-core nil
"Major mode for viewing pretty printed GHC Core output."
:link '(custom-manual "(haskell-mode)")
:group 'haskell
:prefix "ghc-core-")

;;;###autoload
(defcustom ghc-core-program
"ghc"
"Name of the GHC executable (excluding any arguments)."
:type 'string
:group 'ghc-core)

;;;###autoload
(defcustom ghc-core-program-args
'("-O2")
"Additional options to be passed to GHC when generating core output.
Expand Down
1 change: 1 addition & 0 deletions haskell-align-imports.el
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"\\( -- .*\\)?[ ]*$")
"Regex used for matching components of an import.")

;;;###autoload
(defcustom haskell-align-imports-pad-after-name
nil
"Pad layout after the module name also."
Expand Down
3 changes: 3 additions & 0 deletions haskell-bot.el
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@

(require 'comint)

;;;###autoload
(defgroup haskell-bot nil
"Major mode for interacting with an inferior Bot session."
:group 'haskell
Expand All @@ -90,11 +91,13 @@
(defvar haskell-bot-process-buffer nil
"*Buffer used for communication with Bot subprocess for current buffer.")

;;;###autoload
(defcustom haskell-bot-program-name "lambdabot"
"*The name of the Bot interpreter program."
:type 'string
:group 'haskell-bot)

;;;###autoload
(defcustom haskell-bot-program-args nil
"*A list of string args to pass when starting the Bot interpreter."
:type '(repeat string)
Expand Down
3 changes: 2 additions & 1 deletion haskell-cabal.el
Original file line number Diff line number Diff line change
Expand Up @@ -301,12 +301,13 @@ OTHER-WINDOW use `find-file-other-window'."
"help"
"run"))


;;;###autoload
(defgroup haskell-cabal nil
"Haskell cabal files"
:group 'haskell
)

;;;###autoload
(defcustom haskell-cabal-list-comma-position
'before
"Where to put the comma in lists"
Expand Down
7 changes: 7 additions & 0 deletions haskell-checkers.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

(require 'compile)

;;;###autoload
(defgroup haskell-checkers nil
"Run HLint as inferior of Emacs, parse error messages."
:group 'haskell)
Expand All @@ -37,31 +38,37 @@
:type 'string
:group 'haskell-checkers)

;;;###autoload
(defcustom haskell-scan-command "scan"
"The default scan command for \\[haskell-scan]."
:type 'string
:group 'haskell-checkers)

;;;###autoload
(defcustom haskell-scan-options ""
"The default options for \\[haskell-scan]."
:type 'string
:group 'haskell-checkers)

;;;###autoload
(defcustom haskell-lint-options ""
"The default options for \\[hlint]."
:type 'string
:group 'haskell-checkers)

;;;###autoload
(defcustom haskell-checkers-save-files t
"Save modified files when run checker or not (ask user)"
:type 'boolean
:group 'haskell-checkers)

;;;###autoload
(defcustom haskell-checkers-replace-with-suggestions nil
"Replace user's code with suggested replacements (hlint only)"
:type 'boolean
:group 'haskell-checkers)

;;;###autoload
(defcustom haskell-checkers-replace-without-ask nil
"Replace user's code with suggested replacements automatically (hlint only)"
:type 'boolean
Expand Down
5 changes: 5 additions & 0 deletions haskell-compile.el
Original file line number Diff line number Diff line change
Expand Up @@ -29,32 +29,37 @@
(require 'compile)
(require 'haskell-cabal)

;;;###autoload
(defgroup haskell-compile nil
"Settings for Haskell compilation mode"
:link '(custom-manual "(haskell-mode)compilation")
:group 'haskell)

;;;###autoload
(defcustom haskell-compile-cabal-build-command
"cd %s && cabal build --ghc-option=-ferror-spans"
"Default build command to use for `haskell-cabal-build' when a cabal file is detected.
The `%s' placeholder is replaced by the cabal package top folder."
:group 'haskell-compile
:type 'string)

;;;###autoload
(defcustom haskell-compile-cabal-build-alt-command
"cd %s && cabal clean -s && cabal build --ghc-option=-ferror-spans"
"Alternative build command to use when `haskell-cabal-build' is called with a negative prefix argument.
The `%s' placeholder is replaced by the cabal package top folder."
:group 'haskell-compile
:type 'string)

;;;###autoload
(defcustom haskell-compile-command
"ghc -Wall -ferror-spans -fforce-recomp -c %s"
"Default build command to use for `haskell-cabal-build' when no cabal file is detected.
The `%s' placeholder is replaced by the current buffer's filename."
:group 'haskell-compile
:type 'string)

;;;###autoload
(defcustom haskell-compile-ghc-filter-linker-messages
t
"Filter out unremarkable \"Loading package...\" linker messages during compilation."
Expand Down
2 changes: 2 additions & 0 deletions haskell-complete-module.el
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@

(require 'cl-lib)

;;;###autoload
(defcustom haskell-complete-module-preferred
'()
"Override ordering of module results by specifying preferred modules."
:group 'haskell
:type '(repeat string))

;;;###autoload
(defcustom haskell-complete-module-max-display
10
"Maximum items to display in minibuffer."
Expand Down
Loading