Moving find-file-hook to ghc-comp-init.
This commit is contained in:
parent
a91faaa3bb
commit
5189977cbc
@ -64,6 +64,7 @@ unloaded modules are loaded")
|
|||||||
(defvar ghc-loaded-module nil)
|
(defvar ghc-loaded-module nil)
|
||||||
|
|
||||||
(defun ghc-comp-init ()
|
(defun ghc-comp-init ()
|
||||||
|
(add-hook 'find-file-hook 'ghc-import-module)
|
||||||
(let* ((syms '(ghc-module-names
|
(let* ((syms '(ghc-module-names
|
||||||
ghc-language-extensions
|
ghc-language-extensions
|
||||||
ghc-option-flags
|
ghc-option-flags
|
||||||
@ -227,8 +228,6 @@ unloaded modules are loaded")
|
|||||||
;;; Loading keywords
|
;;; Loading keywords
|
||||||
;;;
|
;;;
|
||||||
|
|
||||||
(add-hook 'find-file-hook 'ghc-import-module)
|
|
||||||
|
|
||||||
(defun ghc-import-module ()
|
(defun ghc-import-module ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(when (eq major-mode 'haskell-mode)
|
(when (eq major-mode 'haskell-mode)
|
||||||
|
Loading…
Reference in New Issue
Block a user