Emacs: Ignore directory backups and suffix # in search paths.

This commit is contained in:
tastytea 2020-12-10 11:24:46 +01:00
parent f4e244545d
commit fc5405f4f7
1 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-12-08T14:04:19+0100>
;; Time-stamp: <2020-12-10T11:22:22+0100>
;;; Commentary:
@ -116,7 +116,7 @@ collapse other projects."
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DWITH_TESTS=YES ..")
(projectile-completion-system 'ivy)
(projectile-indexing-method 'hybrid) ; Allow filtering.
(projectile-globally-ignored-file-suffixes '("~")))
(projectile-globally-ignored-file-suffixes '("~" "#")))
:config (progn
(setq projectile-project-compilation-cmd
(concat "cmake --build . -- -j"
@ -131,7 +131,8 @@ collapse other projects."
'safe-local-variable #'stringp)
;; Auto-search for projects.
(if (f-directory? "~/Projekte")
(setq projectile-project-search-path '("~/Projekte"))))
(setq projectile-project-search-path '("~/Projekte")))
(push "backups" projectile-globally-ignored-directories))
:bind (("C-c p" . 'projectile-command-map)
(:map projectile-command-map
("k" . 'my/projectile-kill-buffers))