Skip to content

Commit

Permalink
Re-add update-emacs-d script
Browse files Browse the repository at this point in the history
  • Loading branch information
ereslibre committed Nov 28, 2024
1 parent 01e340b commit 47d8ba7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ rotate-secrets host=defaultHost:

update-keys host=defaultHost:
nix develop --command sops -- updatekeys {{host}}/secrets.yaml

update-emacs-d:
scripts/update-emacs-d.sh
14 changes: 14 additions & 0 deletions scripts/update-emacs-d.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

set -x

emacsclient --eval '(kill-emacs)'
rm -rf dotfiles/assets/emacs/emacs.d/elpa
mkdir -p dotfiles/assets/emacs/emacs.d/elpa
just
~/.nix-profile/bin/emacs --batch --debug-init --load ~/.emacs.d/early-init.el --load ~/.emacs.d/init.el --load ~/.emacs.d/custom.el -f package-refresh-contents
~/.nix-profile/bin/emacs --batch --debug-init --load ~/.emacs.d/early-init.el --load ~/.emacs.d/init.el --load ~/.emacs.d/custom.el -f kill-emacs
cp -r ~/.emacs.d/elpa dotfiles/assets/emacs/emacs.d
rm -rf ~/.emacs.d/elpa
git add dotfiles/assets/emacs
just

0 comments on commit 47d8ba7

Please sign in to comment.