Skip to content
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
1 change: 1 addition & 0 deletions haskell-indent.el
Original file line number Diff line number Diff line change
Expand Up @@ -1538,6 +1538,7 @@ One indentation cycle is used."
(defun turn-off-haskell-indent ()
"Turn off ``intelligent'' Haskell indentation mode."
(kill-local-variable 'indent-line-function)
(kill-local-variable 'indent-region-function)
;; Remove haskell-indent-map from the local map.
(let ((map (current-local-map)))
(while map
Expand Down
3 changes: 2 additions & 1 deletion haskell-simple-indent.el
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,10 @@ Runs `haskell-simple-indent-hook' on activation."
:lighter " Ind"
:group 'haskell-simple-indent
:keymap '(([backtab] . haskell-simple-indent-backtab))
(set (make-local-variable 'comment-indent-function) #'haskell-simple-indent-comment-indent-function)
(kill-local-variable 'comment-indent-function)
(kill-local-variable 'indent-line-function)
(when haskell-simple-indent-mode
(set (make-local-variable 'comment-indent-function) #'haskell-simple-indent-comment-indent-function)
(set (make-local-variable 'indent-line-function) 'haskell-simple-indent)
(run-hooks 'haskell-simple-indent-hook)))

Expand Down