mirror of
https://codeberg.org/scip/dot-emacs.git
synced 2025-12-17 04:20:57 +01:00
added global prefix for projectile, added job projects
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
;; *** Projectile
|
||||
(use-package projectile
|
||||
:defer nil
|
||||
|
||||
:init
|
||||
(global-unset-key (kbd "C-p"))
|
||||
|
||||
:bind (:map projectile-mode-map
|
||||
("C-p" . projectile-command-map))
|
||||
|
||||
:config
|
||||
(projectile-mode +1)
|
||||
|
||||
@@ -10,12 +18,18 @@
|
||||
(insert "-.snapshot\n-.git\n-.RCS\n"))
|
||||
(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
|
||||
(when (fboundp 'defhydra)
|
||||
(defhydra hydra-projectile
|
||||
( :color teal
|
||||
:columns 4)
|
||||
"Projectile (use C-p for this menu)"
|
||||
"Projectile (use C-x p for this menu)"
|
||||
("s" projectile-switch-project "Switch Project")
|
||||
("f" projectile-find-file "Find File")
|
||||
("r" projectile-recentf "Recent Files")
|
||||
|
||||
Reference in New Issue
Block a user