Compare commits

..

No commits in common. "5ca1377ece859029cd32c772b714ea041c5719fb" and "9f28591ee26426351519a9980d555dfb1535c0ca" have entirely different histories.

2 changed files with 4 additions and 20 deletions

View file

@ -28,7 +28,7 @@ This config also needs [[https://github.com/SystemCrafters/crafted-emacs][Crafte
* TODOS
** DONE Check out Crafted Emacs
** TODO Check out Crafted Emacs
This configuration relies on crafted emacs being checked out in
*~/.local/share/crafted-emacs* .

View file

@ -47,19 +47,6 @@
;; Wait for elpaca
(elpaca-wait)
(setq crafted-emacs-home "~/.local/share/crafted-emacs")
(defun check-crafted-emacs-fresh-repo ()
"Check if the crafted-emacs repo is fresh."
(if (file-exists-p crafted-emacs-home)
(progn
(message "Crafted Emacs repo exists. Pulling...")
(shell-command (format "cd %s && git pull" crafted-emacs-home)))
(progn
(message "Crafted Emacs repo does not exist. Cloning...")
(shell-command (format "git clone https://github.com/SystemCrafters/crafted-emacs.git %s" crafted-emacs-home)))
))
;; tangling to generate scripts for the local bin directory. This
;; causes the name of the scripts to be returned in the car of the
;; tangle command which is used to load the file. The net result is
@ -71,12 +58,8 @@
(if (file-newer-than-file-p src tgt)
(progn
(message "snamellit.org has been changed, tangling...")
(org-babel-tangle-file src tgt "emacs-lisp")
;; this is a good time to check if the crafted-emacs repo is fresh
;; - we just updated the init.org file so we expect changes.
;; - or this is the initial tangling and we need the repo to exist.
(check-crafted-emacs-fresh-repo)
)))
(org-babel-tangle-file src tgt "emacs-lisp"))))
;; Configure Crafted Emacs
(setq crafted-package-system 'elpaca)
@ -85,6 +68,7 @@
;; Startup Crafted Emacs
(setq crafted-emacs-home "~/.local/share/crafted-emacs")
(load (expand-file-name "modules/crafted-package-config" crafted-emacs-home))
(load (expand-file-name "modules/crafted-early-init-config" crafted-emacs-home))