Change emacs theme without user confirmation

This commit is contained in:
coolneng 2020-10-13 03:23:04 +02:00
parent 654e3474ba
commit 46ded55674
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ fi
mode=$1 mode=$1
if [ "$mode" = "light" ]; then if [ "$mode" = "light" ]; then
emacsclient --eval "(load-theme 'doom-nord-light)" emacsclient --eval "(load-theme 'doom-nord-light 'no-confirm)"
sed -i "s/iceberg_dark/iceberg_light/" ~/.config/kitty/kitty.conf sed -i "s/iceberg_dark/iceberg_light/" ~/.config/kitty/kitty.conf
sed -i "s/bg=dark/bg=light/" ~/.config/nvim/init.vim sed -i "s/bg=dark/bg=light/" ~/.config/nvim/init.vim
sed -i "s/iceberg_dark/iceberg_light/" ~/.dotfiles/tmux/.tmux.conf sed -i "s/iceberg_dark/iceberg_light/" ~/.dotfiles/tmux/.tmux.conf
@ -17,7 +17,7 @@ if [ "$mode" = "light" ]; then
tmux source-file ~/.tmux.conf tmux source-file ~/.tmux.conf
kitty --class tmux tmux a kitty --class tmux tmux a
else else
emacsclient --eval "(load-theme 'doom-nord)" emacsclient --eval "(load-theme 'doom-nord 'no-confirm)"
sed -i "s/iceberg_light/iceberg_dark/" ~/.config/kitty/kitty.conf sed -i "s/iceberg_light/iceberg_dark/" ~/.config/kitty/kitty.conf
sed -i "s/bg=light/bg=dark/" ~/.config/nvim/init.vim sed -i "s/bg=light/bg=dark/" ~/.config/nvim/init.vim
sed -i "s/iceberg_light/iceberg_dark/" ~/.dotfiles/tmux/.tmux.conf sed -i "s/iceberg_light/iceberg_dark/" ~/.dotfiles/tmux/.tmux.conf