Emacs config utilizing prelude as a base
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
950 B

  1. #!/bin/bash
  2. PRELUDE_INSTALL_DIR="$HOME/.emacs.d"
  3. echo "Looking for an existing Emacs config..."
  4. if [ -f $PRELUDE_INSTALL_DIR ]
  5. then
  6. echo "Found $PRELUDE_INSTALL_DIR. Backing up to $PRELUDE_INSTALL_DIR.pre-prelude"
  7. mv $PRELUDE_INSTALL_DIR $PRELUDE_INSTALL_DIR.pre-prelude
  8. fi
  9. if [ -f ~/.emacs ]
  10. then
  11. echo "Found ~/.emacs. Backing up to ~/.emacs.pre-prelude"
  12. mv ~/.emacs ~/.emacs.pre-prelude
  13. fi
  14. echo "Cloning Emacs Prelude from GitHub..."
  15. /usr/bin/env git clone https://github.com/bbatsov/emacs-prelude.git $PRELUDE_INSTALL_DIR
  16. echo ' _____ ____ _ _ '
  17. echo '| ____|_ __ ___ __ _ ___ ___ | _ \ _ __ ___| |_ _ __| | ___ '
  18. echo '| _| | _ _ \ / _ |/ __/ __| | |_) | __/ _ \ | | | |/ _ |/ _ \'
  19. echo '| |___| | | | | | (_| | (__\__ \ | __/| | | __/ | |_| | (_| | __/'
  20. echo '|_____|_| |_| |_|\__,_|\___|___/ |_| |_| \___|_|\__,_|\__,_|\___|'
  21. echo '... is now installed!'