branch: externals/detached
commit d58230fadbf9fc161a4c6fb3662ca128bea2449f
Author: Niklas Eklund <[email protected]>
Commit: Niklas Eklund <[email protected]>
Make C-c C-k kill session in compile mode
---
detached-compile.el | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/detached-compile.el b/detached-compile.el
index 76b3f17c91..fb5e560c9b 100644
--- a/detached-compile.el
+++ b/detached-compile.el
@@ -71,6 +71,12 @@ Optionally EDIT-COMMAND."
(detached-session-mode 'create-and-attach))
(recompile edit-command)))
+;;;###autoload
+(defun detached-compile-kill ()
+ "Kill a 'detached' session."
+ (interactive)
+ (detached-kill-session detached--buffer-session))
+
;;;;; Functions
;;;###autoload
@@ -147,6 +153,7 @@ Optionally EDIT-COMMAND."
(defvar detached-compilation-mode-map
(let ((map (make-sparse-keymap)))
+ (define-key map (kbd "C-c C-k") #'detached-compile-kill)
(define-key map (kbd detached-detach-key) #'detached-detach-session)
map)
"Keymap for `detached-compilation-mode'.")