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
|
;; *** 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")
|
||||||
|
|||||||
Reference in New Issue
Block a user