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

Load theme instead of setting default fg/bg color #87

Merged

Conversation

jeffbowman
Copy link
Contributor

Configuring the default foreground and background color takes extra
effort to undo when loading a theme after early-init processes. See
#37 for commentary and resolution.

Loads the deeper-blue theme as that one is built-in and matches
closely the default colors.

Configuring the default foreground and background color takes extra
effort to undo when loading a theme after early-init processes. See

Loads the deeper-blue theme as that one is built-in and matches
closely the default colors.
(push '(mouse-color . "white") default-frame-alist)

;; Loads a nice blue theme, avoids the white screen flash on startup.
(load-theme 'deeper-blue t)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder how well this will work with Emacs running as a daemon?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe place a guard (test) there and only load when display-graphic-p and/or not daemonp?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine. I usually run emacs as a deamon and then use emacsclient to start emacs.

Copy link
Contributor

@ajxn ajxn Mar 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test it with emacs -nw and emacs-client -t in a terminal emulator should to verify that it works.

Could probably use a customize variable to make it easy to change?

@daviwil daviwil merged commit 3632d21 into SystemCrafters:master Mar 11, 2022
@jeffbowman jeffbowman deleted the load-theme-to-replace-default-fg-bg branch March 17, 2022 18:54
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

Successfully merging this pull request may close these issues.

None yet

3 participants