mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Move all-the-icons to core-ui
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
;; core-ui.el -*- lexical-binding: t; -*-
|
||||
;;; core-ui.el -*- lexical-binding: t; -*-
|
||||
|
||||
(defvar doom-ui-fringe-size '4 "Default fringe width")
|
||||
|
||||
@ -143,6 +143,22 @@ mode is detected.")
|
||||
;; Plugins
|
||||
;;
|
||||
|
||||
(def-package! all-the-icons
|
||||
:commands (all-the-icons-octicon all-the-icons-faicon all-the-icons-fileicon
|
||||
all-the-icons-wicon all-the-icons-allthe-icon
|
||||
all-the-icons-install-fonts)
|
||||
:init
|
||||
(defun doom*disable-all-the-icons-in-tty (orig-fn &rest args)
|
||||
(when (display-graphic-p)
|
||||
(apply orig-fn args)))
|
||||
|
||||
;; all-the-icons doesn't work in the terminal, so we "disable" it.
|
||||
(advice-add #'all-the-icons-octicon :around #'doom*disable-all-the-icons-in-tty)
|
||||
(advice-add #'all-the-icons-faicon :around #'doom*disable-all-the-icons-in-tty)
|
||||
(advice-add #'all-the-icons-fileicon :around #'doom*disable-all-the-icons-in-tty)
|
||||
(advice-add #'all-the-icons-wicon :around #'doom*disable-all-the-icons-in-tty)
|
||||
(advice-add #'all-the-icons-alltheicon :around #'doom*disable-all-the-icons-in-tty))
|
||||
|
||||
(def-package! fringe-helper
|
||||
:commands fringe-helper-define)
|
||||
|
||||
|
Reference in New Issue
Block a user