Skip to content

Commit

Permalink
Refactor.
Browse files Browse the repository at this point in the history
  • Loading branch information
seagle0128 committed May 3, 2019
1 parent 8209edf commit 413d414
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions doom-modeline-segments.el
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,14 @@ buffer where knowing the current project directory is important."
(let ((face (if (doom-modeline--active)
'doom-modeline-buffer-path
'mode-line-inactive)))
(concat (if (display-graphic-p) " ")
(concat " "
(doom-modeline-icon-octicon
"file-directory"
:face face
:v-adjust -0.05
:height 1.25)
(propertize (concat " " (abbreviate-file-name default-directory))
'face face))))
(if (display-graphic-p) " ")
(propertize (abbreviate-file-name default-directory) 'face face))))

;;
(defvar-local doom-modeline--buffer-file-icon nil)
Expand Down Expand Up @@ -922,10 +922,7 @@ icons."
:inherit
mode-line-inactive)))
(when (and doom-modeline-icon icon text) doom-modeline-inactive-vspc)
(when text (propertize text 'face 'mode-line-inactive))))
;; Adjust the position of the last icon
(if (and (display-graphic-p) (bound-and-true-p fancy-battery-mode))
(propertize " " 'face (if active 'mode-line 'mode-line-inactive)))))
(when text (propertize text 'face 'mode-line-inactive))))))
"")))


Expand Down

0 comments on commit 413d414

Please sign in to comment.