Emacs: Only set ~/Projekte as projectile search path if it exists.
This commit is contained in:
parent
34321385a0
commit
0404939f84
|
@ -1,6 +1,6 @@
|
|||
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-01-07T07:53:57+0100>
|
||||
;; Time-stamp: <2020-01-15T23:14:12+0100>
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
|
@ -136,7 +136,6 @@
|
|||
"cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
||||
-GUnix\\ Makefiles ..")
|
||||
(projectile-completion-system 'ivy)
|
||||
(projectile-project-search-path '("~/Projekte")) ; Auto-search for projects.
|
||||
|
||||
:config
|
||||
(setq projectile-project-compilation-cmd
|
||||
|
@ -147,6 +146,10 @@
|
|||
(put 'projectile-project-compilation-cmd 'safe-local-variable #'stringp)
|
||||
(put 'projectile-project-configure-cmd 'safe-local-variable #'stringp)
|
||||
|
||||
;; Auto-search for projects.
|
||||
(if (f-directory? "~/Projekte")
|
||||
(setq projectile-project-search-path '("~/Projekte")))
|
||||
|
||||
:bind
|
||||
("C-c p" . 'projectile-command-map)
|
||||
("C-p" . 'projectile-command-map)
|
||||
|
|
Loading…
Reference in New Issue
Block a user