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
Icons on a per frame basis #375
Comments
I am not sure if I understand your request completely. You may try this. (make-variable-buffer-local 'doom-modeline-icon)
(add-hook 'after-make-frame-hook
(lambda ()
(setq doom-modeline-icon (display-graphic-p)))) |
i do have it globally set to always display as if it were in a GUI frame, but i want to mix gui and tui |
Did you try the snippet? |
Any update? |
(make-variable-buffer-local 'doom-modeline-icon)
(add-hook 'server-after-make-frame-hook
(lambda ()
(setq doom-modeline-icon (display-graphic-p)))) The original snippet did not work for me. I had to change This switches the icons on/off globally not locally, so I don't think it 100% solves MagicRB's issue. |
I spoke too soon... (make-variable-buffer-local 'doom-modeline-icon) appears to make all subsequent buffers default to showing no icons. |
@rjhwelsh |
I believe this snippet does work according my tests recently. (make-variable-buffer-local 'doom-modeline-icon)
(add-hook 'server-after-make-frame-hook
(lambda ()
(setq doom-modeline-icon (display-graphic-p)))) |
That will not work. Setting the variable on every buffer create or switch would be better, but buffer-local variables cannot correctly solve this because the same buffer can be visited by both a GUI and terminal frame. |
Now just use |
Is your feature request related to a problem? Please describe.
When emacs is started in daemon mode, the assumption is made that only terminal frames will be created, therefore
doom-modeline-icon
must be set to non-nil, or icons wont work. Issue is that when both terminal and GUI frames exist, the setting applies to all globallyDescribe the solution you'd like
I want to be able to manually set whether icons should be enabled on a per frame basis, ideally programmatically
Describe alternatives you've considered
There are no alternatives as currently icons can be enabled or not
Additional context
None needed
The text was updated successfully, but these errors were encountered: