Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
keybinding for hoogle.
  • Loading branch information
kazu-yamamoto committed Oct 5, 2011
1 parent 1790c5f commit 182db0e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions elisp/ghc.el
Expand Up @@ -33,6 +33,11 @@
;;; Customize Variables
;;;

(defun ghc-find-C-h ()
(if keyboard-translate-table
(aref keyboard-translate-table ?\C-h)
?\C-h))

(defvar ghc-completion-key "\e\t")
(defvar ghc-document-key "\e\C-d")
(defvar ghc-import-key "\e\C-m")
Expand All @@ -45,6 +50,7 @@
(defvar ghc-info-key "\C-c\C-i")
(defvar ghc-check-key "\C-x\C-s")
(defvar ghc-toggle-key "\C-c\C-c")
(defvar ghc-hoogle-key (format "\C-c%c" (ghc-find-C-h)))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
Expand All @@ -68,6 +74,7 @@
(define-key haskell-mode-map ghc-sort-key 'ghc-sort-lines)
(define-key haskell-mode-map ghc-check-key 'ghc-save-buffer)
(define-key haskell-mode-map ghc-toggle-key 'ghc-flymake-toggle-command)
(define-key haskell-mode-map ghc-hoogle-key 'haskell-hoogle)
(ghc-comp-init)
(setq ghc-initialized t)))

Expand Down

0 comments on commit 182db0e

Please sign in to comment.