From 5189977cbcfdb80e1e98460032ed06237a555c5c Mon Sep 17 00:00:00 2001 From: Kazu Yamamoto Date: Tue, 30 Oct 2012 16:47:29 +0900 Subject: [PATCH] Moving find-file-hook to ghc-comp-init. --- elisp/ghc-comp.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)