diff options
author | Kyle Meyer <kyle@kyleam.com> | 2015-02-20 23:54:56 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2015-02-28 00:29:49 -0500 |
commit | 6d5108aead381ed7f11becc6a44e78e3fd2f53fa (patch) | |
tree | df3d836bedc642d0b596b06116171de3e27aaba6 /lisp | |
parent | aef57f4f9c14ec592cd20871ab8c7f297c15af67 (diff) | |
download | emacs.d-6d5108aead381ed7f11becc6a44e78e3fd2f53fa.tar.gz |
Don't ask to kill project buffers
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/init-projectile.el | 9 |
1 files changed, 6 insertions, 3 deletions
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) |