Skip to content

Commit

Permalink
Use special-mode for the output buffer so q can be used to quit (#302)
Browse files Browse the repository at this point in the history
Sets the output buffer to read only and allows quitting by pressing
`q` which makes for a nice dev workflow, as you switch back to the
buffer where you started rather than having to manually kill the
buffer and navigate back.
  • Loading branch information
alexanderjamesking authored Jun 17, 2020
1 parent bec9bc6 commit 554f7ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dap-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,7 @@ PARAMS are the event params.")
"Creates an output buffer with with name SESSION-NAME."
(with-current-buffer (get-buffer-create (concat "*" session-name " out*"))
(set (make-local-variable 'window-point-insertion-type) t)
(special-mode)
(current-buffer)))

(defun dap--make-request (command &optional args)
Expand Down

0 comments on commit 554f7ca

Please sign in to comment.