ui/modeline: remove dangling advice

`doom-modeline-icon-material` was removed upstream and replaced with
`doom-modeline-icon`. This breaks the saved icon, again. PRs welcome.
This commit is contained in:
Henrik Lissner 2019-12-13 19:52:52 -05:00
parent fecf68bb2a
commit fbe8d9d8ac
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -37,17 +37,6 @@
(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 (&rest args)
:override #'doom-modeline-icon-material
(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."