ui/modeline: fix ligature/all-the-icons conflict #1216
Relevant to seagle0128/doom-modeline#69
This commit is contained in:
parent
3dd09b327f
commit
909c277968
1 changed files with 10 additions and 0 deletions
|
@ -37,6 +37,16 @@
|
|||
|
||||
(add-hook '+doom-dashboard-mode-hook #'doom-modeline-set-project-modeline)
|
||||
|
||||
(when (or (featurep! :ui pretty-code +fira)
|
||||
(featurep! :ui pretty-code +iosevka))
|
||||
;; Fix #1216 and seagle0128/doom-modeline#69: wrong icon displayed for
|
||||
;; 'save' icon in modeline.
|
||||
(defadvice! +modeline-fix-font-conflict-with-ligatures-a (icon-name &rest args)
|
||||
(when doom-modeline-icon
|
||||
(pcase (car args)
|
||||
("save" (apply 'all-the-icons-faicon (cons "floppy-o" (plist-put (cdr args) :v-adjust -0.0575))))
|
||||
(other (apply 'all-the-icons-material args))))))
|
||||
|
||||
(add-hook! 'magit-mode-hook
|
||||
(defun +modeline-hide-in-non-status-buffer-h ()
|
||||
"Show minimal modeline in magit-status buffer, no modeline elsewhere."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue