Closed hjpotter92 closed 4 years ago
The readme says something like:
(use-package projectile
:delight '(:eval (concat " " (projectile-project-name))))
while you have
:delight (projectile-mode '(:eval (format "P[%s]" (projectile-project-name))))
This would however cause performance issue under certain circumstances, and in my case for a file under go module <somewhere>/go/pkg/mod/
.
A better way to do this I believe is https://docs.projectile.mx/en/latest/configuration/#mode-line-indicator
Updating it to the documented version did fix the issue. However, you're correct. I should make use of the projectile-mode-line-function
instead.
I have set the following for my projectile package:
A lot of it was copied from different sections from
.emacs
setups found around github. When I open a file inside a git project, my modeline displays something like:Notice how
projectile-project-name
is displayed around the file-name. Now, if I toggleprojectile-mode
twice (it is already on, I switch it off then back to on):It starts respecting the
:delight
section I have in myuse-package
.My emacs is 26.1.50, compiled locally.