From 6d5108aead381ed7f11becc6a44e78e3fd2f53fa Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Fri, 20 Feb 2015 23:54:56 -0500 Subject: Don't ask to kill project buffers --- lisp/init-projectile.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lisp/init-projectile.el') diff --git a/lisp/init-projectile.el b/lisp/init-projectile.el index e099ec1..29d915a 100644 --- a/lisp/init-projectile.el +++ b/lisp/init-projectile.el @@ -123,11 +123,14 @@ If there is nothing ot restore, call (defun km/projectile-kill-buffers () "Kill all project buffers. -Before running `projectile-kill-buffers', delete any saved thing -for the project." +Like `projectile-kill-buffers', but +- Before killing buffers, delete any saved thing for the project. +- Don't ask for confirmation to kill project buffers (but + `kill-buffer' will still ask when killing a modified buffer)." (interactive) (km/projectile-save-thing ?d) - (projectile-kill-buffers)) + (cl-letf (((symbol-function 'yes-or-no-p) (lambda (&rest args) t))) + (projectile-kill-buffers))) (define-key projectile-command-map (kbd "4 v") 'km/projectile-view-file-other-window) -- cgit v1.2.3