Skip to content

Commit 6c87d4a

Browse files
committed
Add haskell-mode-stylish-haskell-path
1 parent a5201ac commit 6c87d4a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

haskell-commands.el

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@
3737
(require 'highlight-uses-mode)
3838
(require 'haskell-cabal)
3939

40+
(defcustom haskell-mode-stylish-haskell-path "stylish-haskell"
41+
"Path to `stylish-haskell' executable."
42+
:group 'haskell
43+
:type 'string)
44+
4045
;;;###autoload
4146
(defun haskell-process-restart ()
4247
"Restart the inferior Haskell process."
@@ -779,7 +784,7 @@ inferior GHCi process."
779784
(interactive)
780785
(let ((column (current-column))
781786
(line (line-number-at-pos)))
782-
(haskell-mode-buffer-apply-command "stylish-haskell")
787+
(haskell-mode-buffer-apply-command haskell-mode-stylish-haskell-path)
783788
(goto-char (point-min))
784789
(forward-line (1- line))
785790
(goto-char (+ column (point)))))

0 commit comments

Comments
 (0)