From 2fe8007536f94a3759341eaea27206062dcfe2f9 Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 28 Jan 2020 03:33:39 +0100 Subject: [PATCH] Emacs: Close other windows after killing all project buffers. --- init.d/programming/common.el | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/init.d/programming/common.el b/init.d/programming/common.el index 1eb1088..4c77033 100644 --- a/init.d/programming/common.el +++ b/init.d/programming/common.el @@ -131,11 +131,10 @@ (treemacs-toggle-node)) (defun my/projectile-kill-buffers () - "Kill project buffers and remove project from treemacs." + "Kill project buffers and delete other windows." (interactive) (projectile-kill-buffers) - (let ((current-prefix-arg (projectile-project-name))) - (treemacs-remove-project-from-workspace))) + (delete-other-windows)) :custom (projectile-project-compilation-dir "build") @@ -160,8 +159,8 @@ :bind ("C-c p" . 'projectile-command-map) - ;; (:map projectile-command-map - ;; ("k" . 'my/projectile-kill-buffers)) + (:map projectile-command-map + ("k" . 'my/projectile-kill-buffers)) ) ) ; unless slow-computer.