Alex's Slip-box

These are my org-mode notes in sort of Zettelkasten style

Projectile

:ID: F1597962-F7B6-4D42-9A01-A7BE1715C9BF

# 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

Search Results