better loading of symbols.

symbols of modules are loaded when a Haskell file is opened on
Emacs. idle timer is still effective. M-C-e is obsoleted.
M-C-m loads symbols of all un-loaded modules.
This commit is contained in:
Kazu Yamamoto
2010-03-10 15:54:27 +09:00
parent cfa7466eef
commit 387bf83f37
3 changed files with 11 additions and 9 deletions

View File

@@ -27,7 +27,7 @@
(defvar ghc-completion-key "\e\t")
(defvar ghc-document-key "\e\C-d")
(defvar ghc-import-key "\e\C-e")
(defvar ghc-import-key "\e\C-m")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
@@ -40,6 +40,6 @@
(unless ghc-initialized
(define-key haskell-mode-map ghc-completion-key 'ghc-complete)
(define-key haskell-mode-map ghc-document-key 'ghc-browse-document)
(define-key haskell-mode-map ghc-import-key 'ghc-import-module)
(define-key haskell-mode-map ghc-import-key 'ghc-load-module-buffer)
(ghc-comp-init)
(setq ghc-initialized t)))