diff options
author | Amin Bandali <amin@gnu.org> | 2018-08-23 16:19:42 -0400 |
---|---|---|
committer | Amin Bandali <amin@gnu.org> | 2018-08-23 16:19:42 -0400 |
commit | 9b646b53ba2ae709bc696af3465d4dbc93e5f86e (patch) | |
tree | f4aa1829373fbe4f012d01e7d1e7f4b08f2b3f29 | |
parent | 06e1660015051599b192f89faadc35b4e754f8e2 (diff) | |
download | configs-9b646b53ba2ae709bc696af3465d4dbc93e5f86e.tar.gz configs-9b646b53ba2ae709bc696af3465d4dbc93e5f86e.tar.xz configs-9b646b53ba2ae709bc696af3465d4dbc93e5f86e.zip |
[emacs] use-package projectile
Diffstat (limited to '')
-rw-r--r-- | init.org | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -1132,6 +1132,27 @@ Emacs package that displays available keybindings in popup ("<end>" . mwim-end-of-line-or-code))) #+end_src +** projectile + +#+begin_src emacs-lisp +(use-package projectile + :defer 5 + :bind-keymap ("C-c p" . projectile-command-map) + :config + (projectile-global-mode) + + (defun my-projectile-invalidate-cache (&rest _args) + ;; ignore the args to `magit-checkout' + (projectile-invalidate-cache nil)) + + (eval-after-load 'magit-branch + '(progn + (advice-add 'magit-checkout + :after #'my-projectile-invalidate-cache) + (advice-add 'magit-branch-and-checkout + :after #'my-projectile-invalidate-cache)))) +#+end_src + * Email ** [[https://notmuchmail.org][notmuch]] |