From b898a974bfddc7c385c5824da56dbdf56880112f Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 16 Feb 2020 20:48:59 +0000 Subject: [PATCH] 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. --- emacs.d | 1 - install.sh | 11 ++++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) delete mode 160000 emacs.d diff --git a/emacs.d b/emacs.d deleted file mode 160000 index 702d298..0000000 --- a/emacs.d +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 702d2989ddebef01ea9f056671b62242355be616 diff --git a/install.sh b/install.sh index a8ea31d..5baa521 100755 --- a/install.sh +++ b/install.sh @@ -15,7 +15,6 @@ SYMLINKS=( bitbar bundle coffeelint.json - emacs.d erlang eslintrc.js gemrc @@ -117,6 +116,12 @@ install_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 @@ -163,6 +168,9 @@ case "$1" in symlinks|links) install_symlinks ;; + emacs-config|emacs) + install_emacs_config + ;; private) install_private ;; @@ -198,6 +206,7 @@ case "$1" in echo ' info: Target and source directory info.' echo ' symlinks: Install symlinks for various dotfiles into' \ 'target directory.' + echo ' emacs_config: Install Emacs configuration.' echo ' private: Install private dotfiles.' echo ' homebrew: Install Homebrew (Mac OS X only).' echo ' rbenv: Install rbenv, a Ruby version manager.'