Archived
1
0
Fork 0
This repository has been archived on 2024-10-19. You can view files and clone it, but cannot push or open issues or pull requests.
emacs/_setup.sh

24 lines
639 B
Bash
Raw Normal View History

2022-05-21 17:13:20 +00:00
#!/bin/bash
# kemo setup
if [[ ! -d ~/.emacs.d.profiles ]]; then
git clone https://git.kemonine.info/kemonine/dotfiles.git ~/.emacs.d.profiles
fi
# multi profile
if [[ ! -d ~/.emacs.d ]]; then
git clone https://github.com/plexus/chemacs2.git ~/.emacs.d
fi
# profiles
rm ~/.emacs-profiles.el
if grep -q "Android" <<< `uname -a`; then
ln -s ~/.emacs.d.profiles/.emacs-profiles-mobile.el ~/.emacs-profiles.el
else
ln -s ~/.emacs.d.profiles/.emacs-profiles.el ~/.emacs-profiles.el
fi
# dont forget to pre-compile elisp / install plugins
cat ~/.emacs-profiles.el
echo "run emacs with each profile in '~/.emacs-profiles.el'"