added global prefix for projectile, added job projects

This commit is contained in:
2023-06-16 19:32:09 +02:00
parent 0f09f650b8
commit 4b6b9df47a

View File

@@ -1,5 +1,13 @@
;; *** Projectile ;; *** Projectile
(use-package projectile (use-package projectile
:defer nil
:init
(global-unset-key (kbd "C-p"))
:bind (:map projectile-mode-map
("C-p" . projectile-command-map))
:config :config
(projectile-mode +1) (projectile-mode +1)
@@ -10,12 +18,18 @@
(insert "-.snapshot\n-.git\n-.RCS\n")) (insert "-.snapshot\n-.git\n-.RCS\n"))
(message (format "Turned %s into projectile project" default-directory))) (message (format "Turned %s into projectile project" default-directory)))
(setq projectile-project-search-path '("~/fits/jobs/" "~/.fits/")
projectile-auto-discover t)
(projectile-register-project-type 'fitsjob '("README")
:project-file '("README?*" "?*.org" "instances"))
;; FIXME: add custom docstring ;; FIXME: add custom docstring
(when (fboundp 'defhydra) (when (fboundp 'defhydra)
(defhydra hydra-projectile (defhydra hydra-projectile
( :color teal ( :color teal
:columns 4) :columns 4)
"Projectile (use C-p for this menu)" "Projectile (use C-x p for this menu)"
("s" projectile-switch-project "Switch Project") ("s" projectile-switch-project "Switch Project")
("f" projectile-find-file "Find File") ("f" projectile-find-file "Find File")
("r" projectile-recentf "Recent Files") ("r" projectile-recentf "Recent Files")