Skip to content

Latest commit

 

History

History
44 lines (38 loc) · 1.66 KB

20210402135722-projectile.org

File metadata and controls

44 lines (38 loc) · 1.66 KB

Projectile

Resources

Configuration

Example configuration:

(use-package projectile
  :diminish projectile-mode
  :config (projectile-mode)
  :custom ((projectile-completion-system 'ivy))
  :bind-keymap
  ("C-c p" . projectile-command-map)
  :init
  (setq projectile-switch-project-action #'projectile-dired))
  • See use-package.
  • diminish hides or abbreviates the mode-line for that mode.
  • The init block runs before the package is loaded. In this example it just sets projectile-switch-project-action – which tells projectile what to do when switching to a project – to list the project files.
  • config is ruby after the package is loaded.

To make a random folder a project

A git backed folder will automatically be identified as a project, but you can just add .projectile file to any dir root to make it a project.

Some interesting commands

Most of the stuff you can do with this are discoverable with the keymap binding above (Or SPC p in spacemacs), but some noteworthy things are:

  • projectile-edit-dir-locals
  • projectile-find-file-in-known-projects

Extensions