Projectile

about | blog | config | notes | github

Projectile is a project integration library for GNU/Emacs.

1. Configuraiton

Load up projectile first.

(use-package projectile
  :diminish projectile-mode
  :bind-keymap
  ("C-c p" . projectile-command-map)
  :init
  (setq projectile-project-search-path '("~/org"))
  (when (file-directory-p "~/src")
    (add-to-list 'projectile-project-search-path "~/src"))
  (when (file-directory-p "~/usr")
    (add-to-list 'projectile-project-search-path "~/usr"))
  (setq projectile-switch-project-action #'projectile-dired)
  :config (projectile-mode))

Next let's make sure to add the commands we want into our General Leader Keybindings Definer.

(require 'init-general)
(zamlz/leader-keys
  "p"  '(projectile-command-map :which-key "Projectile"))

Like always, make sure to provide this module.

(provide 'init-projectile)

Created: 2021-11-13

Emacs 26.1 (Org mode 9.5)