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

View File

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