diff options
author | jdlugosz963 <jdlugosz963@gmail.com> | 2022-08-21 03:23:36 +0200 |
---|---|---|
committer | jdlugosz963 <jdlugosz963@gmail.com> | 2022-08-21 03:23:36 +0200 |
commit | 6e10e767c4a1816d8672b7af1781cd63226ce45c (patch) | |
tree | 8d80e304ee6ea2bae6a579fa7d25dd92eced10be | |
parent | eb00835f6dc8ba2041c66994c47a0d197fa8df74 (diff) | |
download | dotfiles-6e10e767c4a1816d8672b7af1781cd63226ce45c.tar.gz dotfiles-6e10e767c4a1816d8672b7af1781cd63226ce45c.zip |
Emacs: Projectile open dired on project switch
-rw-r--r-- | Emacs.org | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -593,13 +593,15 @@ | |||
593 | 593 | ||
594 | #+begin_src emacs-lisp | 594 | #+begin_src emacs-lisp |
595 | 595 | ||
596 | (use-package projectile | 596 | (use-package projectile |
597 | :diminish projectile-mode | 597 | :diminish projectile-mode |
598 | :init | 598 | :init |
599 | (when (file-directory-p "~/Documents/code") | 599 | (when (file-directory-p "~/Documents/code") |
600 | (setq projectile-project-search-path '("~/Documents/code/"))) | 600 | (setq projectile-project-search-path '("~/Documents/code/"))) |
601 | :config (projectile-mode) | 601 | :custom ((projectile-Completion-system 'ivy)) |
602 | :custom ((projectile-Completion-system 'ivy))) | 602 | :config |
603 | (setq projectile-switch-project-action #'projectile-dired) | ||
604 | (projectile-mode)) | ||
603 | 605 | ||
604 | #+end_src | 606 | #+end_src |
605 | 607 | ||