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.

15 lines
399 B

  1. #!/bin/sh
  2. rm ./init.el
  3. rm ./init.elc
  4. # caused 'invalid byte-code object'
  5. # when use-package already installed and running emacs after this script
  6. rm -rf ./elpa/use-package*
  7. cat <<EOF >./init.el
  8. (require 'org)
  9. (find-file (concat user-emacs-directory "init.org"))
  10. (org-babel-tangle)
  11. (load-file (concat user-emacs-directory "init.el"))
  12. (byte-compile-file (concat user-emacs-directory "init.el"))
  13. EOF