evilify haskell-debug-mode

This commit is contained in:
d12frosted 2016-05-18 09:24:39 +03:00 committed by syl20bnr
parent 90c09f94bc
commit adec65cc2b
2 changed files with 27 additions and 0 deletions

View File

@ -20,6 +20,7 @@
- [[Key bindings][Key bindings]]
- [[Documentation][Documentation]]
- [[Debug][Debug]]
- [[Debug Buffer][Debug Buffer]]
- [[REPL][REPL]]
- [[Cabal commands][Cabal commands]]
- [[Cabal files][Cabal files]]
@ -288,6 +289,20 @@ Debug commands are prefixed by ~SPC m d~:
| ~SPC m d a~ | abandon current process |
| ~SPC m d r~ | refresh process buffer |
** Debug Buffer
| Key Binding | Description |
|-------------+---------------------------------------------|
| ~RET~ | select object at the point |
| ~a~ | abandon current computation |
| ~b~ | break on function |
| ~c~ | continue the current computation |
| ~d~ | delete object at the point |
| ~g~ | refresh the debugger buffer |
| ~n~ | go to next step to inspect bindings |
| ~p~ | go to previous step to inspect the bindings |
| ~s~ | step into the next function |
| ~t~ | trace the expression |
** REPL
REPL commands are prefixed by ~SPC m s~:

View File

@ -197,6 +197,18 @@
"da" 'haskell-debug/abandon
"dr" 'haskell-debug/refresh))
(evilified-state-evilify haskell-debug-mode haskell-debug-mode-map
"RET" 'haskell-debug/select
"a" 'haskell-debug/abandon
"b" 'haskell-debug/break-on-function
"c" 'haskell-debug/continue
"d" 'haskell-debug/delete
"g" 'haskell-debug/refresh
"n" 'haskell-debug/next
"p" 'haskell-debug/previous
"s" 'haskell-debug/step
"t" 'haskell-debug/trace)
;; configure C-c C-l so it doesn't throw any errors
(bind-key "C-c C-l" 'haskell-process-load-file haskell-mode-map)