emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/detached d58230fadb: Make C-c C-k kill session in compi


From: ELPA Syncer
Subject: [elpa] externals/detached d58230fadb: Make C-c C-k kill session in compile mode
Date: Tue, 30 Aug 2022 04:57:29 -0400 (EDT)

branch: externals/detached
commit d58230fadbf9fc161a4c6fb3662ca128bea2449f
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>

    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'.")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]