Skip to content

autoload problems when invoked by centaur-tabs #307

Description

@jaydub

When running all-the-icons-20220117.108 on emacs 27.1 from inside the Spacemacs develop tree, centaur-tabs (20220112.1239) will invoke all-the-icons functions that are not part of the autoload set, which means in Spacemacs' load package on demand environment, the tabs don't get icons until something else pulls all-the-icons in.

centaur-tabs does this in centaur-tabs-functions.el:

(declare-function all-the-icons-match? "ext:all-the-icons.el" t t)
(declare-function all-the-icons-auto-mode-match? "ext:all-the-icons.el" t t)
(declare-function all-the-icons-icon-for-file "ext:all-the-icons.el" t t)
(declare-function all-the-icons-icon-for-mode "ext:all-the-icons.el" t t)

But none of those functions are in the all-the-icons-autoloads.el file.

I can work around this issue by putting:

(all-the-icons-icon-for-mode major-mode)

...in my .spacemacs, but it is kind of janky. Better would be to either make auto loading just work, or propose a work around that triggers autoload in centaur-tabs.

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