Emacs: Close other windows after killing all project buffers.

This commit is contained in:
tastytea 2020-01-28 03:33:39 +01:00
parent c32b7c7614
commit 2fe8007536
1 changed files with 4 additions and 5 deletions

View File

@ -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.