From 9a73e08a2f72ef5de8d7f89e6afe954f2a55b00b Mon Sep 17 00:00:00 2001 From: Lucas Sta Maria Date: Sat, 24 Aug 2024 17:53:48 -0700 Subject: [PATCH] fix(emacs): make projectile work on first try For some reason, removing those two lines from `misc.el` prevents projectile from "working" on the first try when opening up for projects... As in, there is no completion in the minibuffer. --- .emacs.d/include/misc.el | 3 +++ .emacs.d/init.el | 5 +---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.emacs.d/include/misc.el b/.emacs.d/include/misc.el index 45cad43..7537407 100644 --- a/.emacs.d/include/misc.el +++ b/.emacs.d/include/misc.el @@ -182,6 +182,9 @@ ;; Magit (setq auth-sources '("~/.authinfo")) +(projectile-mode +1) +(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map) + ;; hledger (setq hledger-currency-string "$") (add-to-list 'auto-mode-alist '("\\.journal\\'" . hledger-mode)) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index ed48a8f..2a31875 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -71,10 +71,7 @@ :hook (prog-mode . ws-butler-mode)) ;; Convenience -(use-package projectile :straight t - :bind (("C-c p" . 'projectile-command-map)) - :init - (projectile-mode)) +(use-package projectile :straight t) (use-package bufler :straight t :bind (("C-x C-b" . bufler-list) ("C-x b" . bufler-switch-buffer))