aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEmil Marklund <Eeemil@users.noreply.github.com>2018-10-25 18:30:07 +0200
committerBozhidar Batsov <bozhidar.batsov@gmail.com>2018-10-25 22:30:37 +0200
commit15504b8080ca422279bec17fa2d30a057ee93646 (patch)
tree5f95bce7186b287e7d43b53a94ed70a9ce0408aa /doc
parentde7f6520521296b86d4ec37863680d68577bcde4 (diff)
Gave an example for projectile-mode-line-function
I tried setting the function to something along the lines of the old syntax of customizing projectile-mode-line to "'(:eval (format " Proj[%s]" (projectile-project-name)))" as mentioned in the _stable_ documentation. This confusion cost me about an hour, so I thought giving an example might help somebody else. :)
Diffstat (limited to 'doc')
-rw-r--r--doc/configuration.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/configuration.md b/doc/configuration.md
index 9aab977..cc4a69a 100644
--- a/doc/configuration.md
+++ b/doc/configuration.md
@@ -321,7 +321,7 @@ By default the minor mode indicator of Projectile appears in the form
* `projectile-mode-line-prefix` (by default " Projectile") controls the static part of the mode-line
* `projectile-dynamic-mode-line` (by default `t`) controls whether to display the project name & type part of the mode-line
-* `projectile-mode-line-function` (by default `projectile-default-mode-line`) controls the actual function to be invoked to generate the mode-line. If you'd like to show different info you should supply a custom function to replace the default.
+* `projectile-mode-line-function` (by default `projectile-default-mode-line`) controls the actual function to be invoked to generate the mode-line. If you'd like to show different info you should supply a custom function to replace the default, for example `(setq projectile-mode-line-function '(lambda () (format " Proj[%s]" (projectile-project-name))))`
!!! Note