Skip to content

Commit

Permalink
added new minor mode, added default key bindings for the same
Browse files Browse the repository at this point in the history
  • Loading branch information
vasanthaganeshk committed Jun 21, 2017
1 parent 42fa502 commit afcd729
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions haskell-collapse.el
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,17 @@ indentation if dir=-1"
(end-of-line)
(point)))))

(defvar haskell-collapse-mode-map
(let ((map (make-sparse-keymap)))
(define-key map (kbd "C-c @ C-c") 'haskell-hide-toggle)
map)
"Keymap for using `haskell-collapse-mode'.")

;;;###autoload
(define-minor-mode haskell-collapse-mode
"Minor mode to collapse and expand haskell expressions"
:init-value nil
:lighter " Haskell-Collapse"
:keymap haskell-collapse-mode-map)

(provide 'haskell-collapse)

0 comments on commit afcd729

Please sign in to comment.