Skip to content

[Question] Why all-the-icons-icon-for-mode create idle timers? #113

@stardiviner

Description

@stardiviner

I have following config:

(defun *major-mode ()
  "The major mode, including process, environment and text-scale info."
  (if (cdr (assoc major-mode all-the-icons-mode-icon-alist))
      ;; (all-the-icons-icon-for-buffer)
      ;; (all-the-icons-auto-mode-match?)
      (all-the-icons-icon-for-mode major-mode :v-adjust -0.1 :height 1.0)
    ;; (all-the-icons-icon-for-file (buffer-file-name) :v-adjust -0.05 :height 1.0)
    (propertize (format-mode-line "%m" mode-name)
                'face 'mode-line-data-face)
    ))

And I execute helm-timers found there are some timers are from all-the-icons.

all-the-icons major-mode timers

My question is why need to create those timers? After did some profiling with Emacs profiler. Found it might slow down performance a little. Is it really necessary?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions