Skip to content

Commit

Permalink
add adp
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Oct 7, 2022
1 parent ba460e1 commit 5ed20c3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion execrun.el
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@
:type 'string
:group 'execrun)

(defcustom execrun-kill-buffer-function #'kill-this-buffer
"Function to kill output buffer."
:type 'function
:group 'execrun)

;;
;; (@* "Entry" )
;;
Expand Down Expand Up @@ -261,7 +266,7 @@ IN-OP : inpuit operation script."
(save-window-excursion
(execrun-previous)
(setq prev-output-buf (current-buffer))))
(kill-this-buffer)
(funcall execrun-kill-buffer-function)
(when prev-output-buf (switch-to-buffer prev-output-buf))))

(provide 'execrun)
Expand Down

0 comments on commit 5ed20c3

Please sign in to comment.