evilify haskell-debug-mode
This commit is contained in:
parent
90c09f94bc
commit
adec65cc2b
|
@ -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~:
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue