Skip to content

Commit

Permalink
Support god-mode on SPC key
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdone committed Jan 20, 2014
1 parent 175c6cc commit 1c6ef10
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions haskell-interactive-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,12 @@ Key bindings:
(defun haskell-interactive-mode-space (n)
"Handle the space key."
(interactive "p")
(if (haskell-interactive-at-compile-message)
(next-error-no-select 0)
(self-insert-command n)))
(if (and (bound-and-true-p god-local-mode)
(fboundp 'god-mode-self-insert))
(call-interactively 'god-mode-self-insert)
(if (haskell-interactive-at-compile-message)
(next-error-no-select 0)
(self-insert-command n))))

(defun haskell-interactive-at-prompt ()
"If at prompt, returns start position of user-input, otherwise returns nil."
Expand Down

0 comments on commit 1c6ef10

Please sign in to comment.