Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autoload problems when invoked by centaur-tabs #307

Open
jaydub opened this issue Feb 15, 2022 · 1 comment
Open

autoload problems when invoked by centaur-tabs #307

jaydub opened this issue Feb 15, 2022 · 1 comment

Comments

@jaydub
Copy link

jaydub commented Feb 15, 2022

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.

@jaydub
Copy link
Author

jaydub commented Feb 15, 2022

Complementary issue raised for centaur-tabs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant