From 46ded5567475331bf051a6c1cbb66103e4770a0c Mon Sep 17 00:00:00 2001 From: coolneng Date: Tue, 13 Oct 2020 03:23:04 +0200 Subject: [PATCH] Change emacs theme without user confirmation --- scripts/.local/share/scripts/switch_theme | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/.local/share/scripts/switch_theme b/scripts/.local/share/scripts/switch_theme index 5a68071..69468f4 100755 --- a/scripts/.local/share/scripts/switch_theme +++ b/scripts/.local/share/scripts/switch_theme @@ -9,7 +9,7 @@ fi mode=$1 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/bg=dark/bg=light/" ~/.config/nvim/init.vim sed -i "s/iceberg_dark/iceberg_light/" ~/.dotfiles/tmux/.tmux.conf @@ -17,7 +17,7 @@ if [ "$mode" = "light" ]; then tmux source-file ~/.tmux.conf kitty --class tmux tmux a 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/bg=light/bg=dark/" ~/.config/nvim/init.vim sed -i "s/iceberg_light/iceberg_dark/" ~/.dotfiles/tmux/.tmux.conf