Skip to content

Commit

Permalink
Add ;;;###autoload to each defcustom
Browse files Browse the repository at this point in the history
  • Loading branch information
William Kunkel committed Aug 3, 2015
1 parent ecfc913 commit a221b4a
Show file tree
Hide file tree
Showing 17 changed files with 105 additions and 4 deletions.
2 changes: 2 additions & 0 deletions ghc-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@
: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
2 changes: 2 additions & 0 deletions haskell-bot.el
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,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
1 change: 1 addition & 0 deletions haskell-cabal.el
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ OTHER-WINDOW use `find-file-other-window'."
:group 'haskell
)

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

0 comments on commit a221b4a

Please sign in to comment.