Moving find-file-hook to ghc-comp-init.

This commit is contained in:
Kazu Yamamoto 2012-10-30 16:47:29 +09:00
parent a91faaa3bb
commit 5189977cbc
1 changed files with 1 additions and 2 deletions

View File

@ -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)