File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 58
58
| Key | Function |
59
59
|-----------+----------------------------------------|
60
60
| ~C-c C-a l~ | ~reveal-remote-clear~ |
61
- | ~C-c C-a q~ | ~reveal-remote-dispose~ |
61
+ | ~C-c C-a q~ | ~reveal-remote-close-all-views~ |
62
+ | ~C-c C-a x~ | ~reveal-remote-dispose~ |
62
63
| ~C-c C-a e~ | ~reveal-remote-submit~ |
63
64
| ~C-c C-a v~ | ~reveal-remote-open-view-last-sexp~ |
64
65
| ~C-c C-a c~ | ~reveal-remote-open-view-defun-at-point~ |
Original file line number Diff line number Diff line change 34
34
; ; Currently requires CIDER and a pre-configured nrepl connection,
35
35
; ; but my goal is to make this work with inf-clojure as well.
36
36
; ;
37
- ; ; Tested against Reveal 1.3.196
37
+ ; ; Tested against Reveal 1.3.209
38
38
39
39
; ;; Code:
40
40
@@ -128,6 +128,11 @@ which means that any unknown symbols will result in compile errors."
128
128
(interactive )
129
129
(reveal-remote--eval-command " clear-output" ))
130
130
131
+ (defun reveal-remote-close-all-views ()
132
+ " Close all open Reveal views."
133
+ (interactive )
134
+ (reveal-remote--eval-command " close-all-views" ))
135
+
131
136
(defun reveal-remote-dispose ()
132
137
" Disposes the Reveal window."
133
138
(interactive )
@@ -163,7 +168,8 @@ meaning that you are able to trigger exceptions."
163
168
(defvar reveal-remote-command-map
164
169
(let ((map (make-sparse-keymap )))
165
170
(define-key map (kbd " l" ) #'reveal-remote-clear )
166
- (define-key map (kbd " q" ) #'reveal-remote-dispose )
171
+ (define-key map (kbd " q" ) #'reveal-remote-close-all-views )
172
+ (define-key map (kbd " x" ) #'reveal-remote-dispose )
167
173
(define-key map (kbd " e" ) #'reveal-remote-submit )
168
174
(define-key map (kbd " v" ) #'reveal-remote-open-view-last-sexp )
169
175
(define-key map (kbd " c" ) #'reveal-remote-open-view-defun-at-point )
You can’t perform that action at this time.
0 commit comments