X-Git-Url: https://git.shemshak.org/~bandali/configs/blobdiff_plain/06e1660015051599b192f89faadc35b4e754f8e2..47112ed3fc08782ad4eb1f02cd5aa0d98544aea5:/init.org diff --git a/init.org b/init.org index da741f1..25807b7 100644 --- a/init.org +++ b/init.org @@ -1132,6 +1132,27 @@ Emacs package that displays available keybindings in popup ("" . 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-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]] @@ -1186,6 +1207,7 @@ See [[notmuch:id:87muuqsvci.fsf@fencepost.gnu.org][bug follow-up]]. (use-package notmuch :commands notmuch :bind ("C-c m" . amin/notmuch) + :custom (notmuch-always-prompt-for-sender t) :config (setq notmuch-hello-sections '(notmuch-hello-insert-header