diff --git a/elisp/ghc-comp.el b/elisp/ghc-comp.el index 330906d..d463825 100644 --- a/elisp/ghc-comp.el +++ b/elisp/ghc-comp.el @@ -64,6 +64,7 @@ unloaded modules are loaded") (defvar ghc-loaded-module nil) (defun ghc-comp-init () + (add-hook 'find-file-hook 'ghc-import-module) (let* ((syms '(ghc-module-names ghc-language-extensions ghc-option-flags @@ -227,8 +228,6 @@ unloaded modules are loaded") ;;; Loading keywords ;;; -(add-hook 'find-file-hook 'ghc-import-module) - (defun ghc-import-module () (interactive) (when (eq major-mode 'haskell-mode)