branch: externals/dape
commit 3770a22b289df71a21d6a8130b94c8ad13b91a25
Author: Daniel Pettersson <[email protected]>
Commit: Daniel Pettersson <[email protected]>
Cleanup before emacs exits #8
Before emacs exits we should handle the debug process, otherwise we
might leave some debuggee behind.
---
dape.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dape.el b/dape.el
index 838a515f24..8b48036138 100644
--- a/dape.el
+++ b/dape.el
@@ -2660,6 +2660,12 @@ See `eldoc-documentation-functions', for more
infomation."
(global-set-key dape-key-prefix dape-global-map)
+
+;;; Hooks
+
+;; Cleanup process before bed time
+(add-hook 'kill-emacs-hook #'dape-kill)
+
(provide 'dape)
;;; dape.el ends here