Remove .emacs.d submodule, add install script task to clone config

Instead of keeping my emacs config as a submodule of my dotfiles, I've
decided to completely disconnect them, and instead just plain clone my
emacs config separately.
This commit is contained in:
2020-02-16 20:48:59 +00:00
parent 8f0e53db4c
commit b898a974bf
2 changed files with 10 additions and 2 deletions

Submodule emacs.d deleted from 702d2989dd

View File

@@ -15,7 +15,6 @@ SYMLINKS=(
bitbar bitbar
bundle bundle
coffeelint.json coffeelint.json
emacs.d
erlang erlang
eslintrc.js eslintrc.js
gemrc gemrc
@@ -117,6 +116,12 @@ install_dokku() {
git_clone 'https://github.com/progrium/dokku.git' "$TARGET/.dokku" git_clone 'https://github.com/progrium/dokku.git' "$TARGET/.dokku"
} }
install_emacs_config() {
git_clone 'https://github.com/plexus/chemacs.git' "$TARGET/.config/chemacs"
symlink "$TARGET/.config/chemacs/.emacs" "$TARGET/.emacs"
git_clone 'git@github.com:jimeh/.emacs.d.git' "$TARGET/.emacs.d"
}
# #
# Helper functions # Helper functions
@@ -163,6 +168,9 @@ case "$1" in
symlinks|links) symlinks|links)
install_symlinks install_symlinks
;; ;;
emacs-config|emacs)
install_emacs_config
;;
private) private)
install_private install_private
;; ;;
@@ -198,6 +206,7 @@ case "$1" in
echo ' info: Target and source directory info.' echo ' info: Target and source directory info.'
echo ' symlinks: Install symlinks for various dotfiles into' \ echo ' symlinks: Install symlinks for various dotfiles into' \
'target directory.' 'target directory.'
echo ' emacs_config: Install Emacs configuration.'
echo ' private: Install private dotfiles.' echo ' private: Install private dotfiles.'
echo ' homebrew: Install Homebrew (Mac OS X only).' echo ' homebrew: Install Homebrew (Mac OS X only).'
echo ' rbenv: Install rbenv, a Ruby version manager.' echo ' rbenv: Install rbenv, a Ruby version manager.'