Skip to content

Commit

Permalink
Add haskell-type-on-previous-line function
Browse files Browse the repository at this point in the history
  • Loading branch information
mijoharas authored and syl20bnr committed Mar 14, 2015
1 parent e7d2532 commit 519e46b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions contrib/lang/haskell/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,17 @@
(evil-leader/set-key-for-mode 'haskell-mode
"mF" 'hindent/reformat-decl))))

(defun haskell-process-do-type-on-prev-line ()
(interactive)
(haskell-process-do-type 1))

(defun haskell/init-haskell-mode ()
(require 'haskell-yas)
(use-package haskell-mode
:defer t
:config
(progn

;; Customization
(custom-set-variables

Expand Down Expand Up @@ -121,20 +126,15 @@

;;;;;;;;; Keybindings ;;;;;;;;;;

;; ;; use "mc" as prefix for cabal commands
;; (setq spacemacs/key-binding-prefixes '(("mc" . "cabal")))

;; ;; use "ms" as prefix for REPL commands
;; (setq spacemacs/key-binding-prefixes '(("ms" . "Haskell REPL")))

;; ;; use "md" as prefix for debug commands
;; (setq spacemacs/key-binding-prefixes '(("md" . "Haskell Debug")))

;; ;; use "mh" as prefix for documentation commands
;; (setq spacemacs/key-binding-prefixes '(("mh" . "Haskell Documentation")))
;; major mode specfic prefixes not support for now
;; (spacemacs/declare-prefix "mc" "cabal")
;; (spacemacs/declare-prefix "ms" "repl")
;; (spacemacs/declare-prefix "md" "debug")
;; (spacemacs/declare-prefix "mh" "documentation")

(evil-leader/set-key-for-mode 'haskell-mode
"mt" 'haskell-process-do-type
"mT" 'haskell-process-do-type-on-prev-line
"mi" 'haskell-process-do-info
"mgg" 'haskell-mode-jump-to-def-or-tag
"mf" 'haskell-mode-stylish-buffer
Expand Down

0 comments on commit 519e46b

Please sign in to comment.