Don't hide neotree when killing projectile buffers.

This commit is contained in:
tastytea 2019-08-02 20:36:01 +02:00
parent 8f426652f0
commit f21dfed32a
1 changed files with 8 additions and 8 deletions

16
init.el
View File

@ -1,5 +1,5 @@
;;; init.el --- tastytea's Emacs init file.
;; Time-stamp: <2019-08-02T18:33:48+00:00>
;; Time-stamp: <2019-08-02T18:35:50+00:00>
;;; Commentary:
;; I am using this file with Emacs 26, but most of it will probably work with
@ -270,11 +270,11 @@ With argument, do this that many times."
(use-package projectile
:after (neotree ivy)
:init
(defun my/projectile-kill-buffers ()
"Kill project buffers and hide neotree."
(interactive)
(projectile-kill-buffers)
(neotree-hide))
;; (defun my/projectile-kill-buffers ()
;; "Kill project buffers and hide neotree."
;; (interactive)
;; (projectile-kill-buffers)
;; (neotree-hide))
(defvar my/cmake-compile-command ; cmake command for compiling with 1
(concat "cmake --build . -- -j" ; core less than available.
(substring (shell-command-to-string "nproc --ignore=1") 0 -1)))
@ -294,8 +294,8 @@ With argument, do this that many times."
(put 'projectile-project-configure-cmd 'safe-local-variable #'stringp)
: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))
))
;; Highlight TODO, FIXME, NOTE and so on.