Skip to content

Commit f2f90d4

Browse files
committed
Add completions hook
1 parent 8ca1af7 commit f2f90d4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

haskell-mode.el

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,11 @@ Minor modes that work well with `haskell-mode':
783783
(setq haskell-literate nil)
784784
(add-hook 'before-save-hook 'haskell-mode-before-save-handler nil t)
785785
(add-hook 'after-save-hook 'haskell-mode-after-save-handler nil t)
786+
;; provide non-interactive completion function
787+
(add-hook 'completion-at-point-functions
788+
#'haskell-completions-completion-at-point
789+
nil
790+
t)
786791
(haskell-indentation-mode))
787792

788793
(defun haskell-fill-paragraph (justify)

0 commit comments

Comments
 (0)