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

Variable customization doesn't work in terminal #111

Open
brian-schwedock opened this issue Jan 26, 2022 · 3 comments
Open

Variable customization doesn't work in terminal #111

brian-schwedock opened this issue Jan 26, 2022 · 3 comments

Comments

@brian-schwedock
Copy link

Trying to customize a variable takes effect in windowed mode, but not in terminal (no-window) mode.

For example,

(setq monokai-background "#004d4d")
(load-theme 'monokai t)

The variable value correctly updates with setq, but the background color does not change.

I'm using emacs 27.1 and monokai-theme 20220117.1244 from MELPA.

@Krasauskas
Copy link

Krasauskas commented Jan 27, 2022

I had the same issue when running emacs in both Alacritty and tmux. It went away in Alacritty after I had explicitly set the TERM variable in alacritty.yml. Not sure that's helpful to you, but try playing around with it.

Tmux is still ignoring the settings, but I suspect the root cause will be the same.

@brian-schwedock
Copy link
Author

I do use tmux, but the issue exists just using the default terminal in Ubuntu (and with tmux too). I set TERM=xterm-256color in my bashrc, but removing it doesn't fix the issue either.

@Krasauskas
Copy link

Krasauskas commented Jan 28, 2022

I got it working!
I'm not setting any TERM value in ~/.config/alacritty/alacritty.yml and letting it default to alacritty.

Adding the following to ~/.tmux.conf is what made it work for me:

set -g default-terminal "tmux-direct"
set -ag terminal-overrides ',alacritty:RGB'

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

2 participants