branch: elpa/telephone-line
commit dde8805867a251120dd1cb20d2a276e7b3f8bedd
Author: Daniel Bordak <[email protected]>
Commit: Daniel Bordak <[email protected]>

    Remove brackets from projectile segment
---
 telephone-line-segments.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/telephone-line-segments.el b/telephone-line-segments.el
index 1622cfe342..2ccef11c6f 100644
--- a/telephone-line-segments.el
+++ b/telephone-line-segments.el
@@ -105,9 +105,8 @@ mouse-3: Toggle minor modes"
       (winum-get-number-string))))
 
 (telephone-line-defsegment telephone-line-projectile-segment ()
-    (if (and (fboundp 'projectile-project-name)
-             (projectile-project-name))
-        (propertize (format "[%s]" (concat (projectile-project-name)))
+    (if (fboundp 'projectile-project-name)
+        (propertize (projectile-project-name)
                     'face '(:inherit)
                     'display '(raise 0.0)
                     'help-echo "Switch project"

Reply via email to