Emacs: Close other windows after killing all project buffers.
This commit is contained in:
parent
c32b7c7614
commit
2fe8007536
|
@ -131,11 +131,10 @@
|
||||||
(treemacs-toggle-node))
|
(treemacs-toggle-node))
|
||||||
|
|
||||||
(defun my/projectile-kill-buffers ()
|
(defun my/projectile-kill-buffers ()
|
||||||
"Kill project buffers and remove project from treemacs."
|
"Kill project buffers and delete other windows."
|
||||||
(interactive)
|
(interactive)
|
||||||
(projectile-kill-buffers)
|
(projectile-kill-buffers)
|
||||||
(let ((current-prefix-arg (projectile-project-name)))
|
(delete-other-windows))
|
||||||
(treemacs-remove-project-from-workspace)))
|
|
||||||
|
|
||||||
:custom
|
:custom
|
||||||
(projectile-project-compilation-dir "build")
|
(projectile-project-compilation-dir "build")
|
||||||
|
@ -160,8 +159,8 @@
|
||||||
|
|
||||||
:bind
|
:bind
|
||||||
("C-c p" . 'projectile-command-map)
|
("C-c p" . 'projectile-command-map)
|
||||||
;; (:map projectile-command-map
|
(:map projectile-command-map
|
||||||
;; ("k" . 'my/projectile-kill-buffers))
|
("k" . 'my/projectile-kill-buffers))
|
||||||
)
|
)
|
||||||
) ; unless slow-computer.
|
) ; unless slow-computer.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user