mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-02 14:53:38 -05:00
modeline: buffer-project => buffer-default-directory
This commit is contained in:
@@ -295,8 +295,8 @@ Example:
|
|||||||
;; Segments
|
;; Segments
|
||||||
;;
|
;;
|
||||||
|
|
||||||
(def-modeline-segment! buffer-project
|
(def-modeline-segment! buffer-default-directory
|
||||||
"Displays `doom-project-root'. This is for special buffers like the scratch
|
"Displays `default-directory'. This is for special buffers like the scratch
|
||||||
buffer where knowing the current project directory is important."
|
buffer where knowing the current project directory is important."
|
||||||
(let ((face (if (active) 'doom-modeline-buffer-path)))
|
(let ((face (if (active) 'doom-modeline-buffer-path)))
|
||||||
(concat (if (display-graphic-p) " ")
|
(concat (if (display-graphic-p) " ")
|
||||||
@@ -305,7 +305,7 @@ buffer where knowing the current project directory is important."
|
|||||||
:face face
|
:face face
|
||||||
:v-adjust -0.05
|
:v-adjust -0.05
|
||||||
:height 1.25)
|
:height 1.25)
|
||||||
(propertize (concat " " (abbreviate-file-name (doom-project-root)))
|
(propertize (concat " " (abbreviate-file-name default-directory))
|
||||||
'face face))))
|
'face face))))
|
||||||
|
|
||||||
;;
|
;;
|
||||||
@@ -591,7 +591,7 @@ Returns \"\" to not break --no-window-system."
|
|||||||
(buffer-encoding major-mode flycheck))
|
(buffer-encoding major-mode flycheck))
|
||||||
|
|
||||||
(def-modeline! project
|
(def-modeline! project
|
||||||
(bar buffer-project)
|
(bar buffer-default-directory)
|
||||||
(major-mode))
|
(major-mode))
|
||||||
|
|
||||||
(def-modeline! media
|
(def-modeline! media
|
||||||
|
Reference in New Issue
Block a user