aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--INSTALL.txt2
-rwxr-xr-xsetup.sh1
-rwxr-xr-xsync.sh17
4 files changed, 15 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore
index c5de9eb..36b5177 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,4 @@
/.config/alacritty/alacritty.local.yml
-/.config/emacs
/.config/newsboat/urls
/.config/nvim/plugin/packer_compiled.lua
/bin/gitalias/git-*
diff --git a/INSTALL.txt b/INSTALL.txt
index f4aa883..e00793c 100644
--- a/INSTALL.txt
+++ b/INSTALL.txt
@@ -27,7 +27,6 @@ $ brew install \
$ brew install --cask \
alacritty \
- emacs \
keepassxc \
;
@@ -56,7 +55,6 @@ $ sudo apt install \
bat \
cmake \
curl \
- emacs \
fd-find \
fzf \
gcc \
diff --git a/setup.sh b/setup.sh
index 2c58fc1..1cfef36 100755
--- a/setup.sh
+++ b/setup.sh
@@ -57,7 +57,6 @@ done
for name in \
alacritty \
bat \
- emacs \
git \
newsboat \
nvim \
diff --git a/sync.sh b/sync.sh
index 9a487aa..690fd9b 100755
--- a/sync.sh
+++ b/sync.sh
@@ -1,6 +1,18 @@
#!/bin/bash
-# Neovim {{{1
+# Remove old settings. {{{1
+
+# Emacs {{{2
+
+emacs_conf_dir="${XDG_CONFIG_HOME:-$HOME/.config}"/emacs
+if [ -d "$emacs_conf_dir" ]; then
+ echo "emacs: remove $emacs_conf_dir"
+ rm -rf "$emacs_conf_dir"
+fi
+
+# Synchronize current settings. {{{1
+
+# Neovim {{{2
if type nvim >/dev/null 2>&1; then
packer_nvim_dir="${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/pack/packer/opt/packer.nvim
nvim_conf_dir="${XDG_CONFIG_HOME:-$HOME/.config}"/nvim
@@ -12,11 +24,12 @@ if type nvim >/dev/null 2>&1; then
fi
fi
-# Bat {{{1
+# Bat {{{2
if type bat >/dev/null 2>&1; then
echo "bat: rebuild cache"
bat cache --clear && bat cache --build
fi
# }}}
+# }}}
# vim: foldmethod=marker