[setup] Fix missing emacs install before running doom init

This commit is contained in:
2026-07-15 13:33:47 -04:00
parent 40a8e225d6
commit 157b273820
2 changed files with 26 additions and 16 deletions

BIN
bin/.local/bin/sess Executable file

Binary file not shown.

View File

@ -157,13 +157,15 @@ ensure_flathub() {
}
# -------- Package sets (portable intent) --------
EMACS_PKG="emacs"
# Required by you:
CORE_CLI=(fzf direnv stow pass just)
# Plus from your history / common tooling:
EXTRA_CLI=(fd git)
DEV_TOOLS_LINUX=(cmake libtool make gcc gcc-c++)
DEV_TOOLS_LINUX=(cmake libtool make gcc gcc-c++ emacs)
UTILS_LINUX=(gnuplot graphviz shfmt shellcheck pandoc)
DESKTOP_LINUX=(kitty alacritty dino syncthing)
@ -207,6 +209,7 @@ MAC_BREW_PKGS=(
postgresql
syncthing
pinentry-mac
emacs
)
MAC_CASKS=(
@ -215,6 +218,7 @@ MAC_CASKS=(
slack
google-chrome
chromium
emacs-app
)
# FreeBSD name mapping (best-effort)
@ -227,7 +231,7 @@ MAC_CASKS=(
# - direnv exists.
FREEBSD_CORE=(fzf direnv stow just password-store)
FREEBSD_EXTRA=(fd-find editorconfig-core-c git)
FREEBSD_DEV=(cmake libtool gmake llvm) # gmake instead of make; llvm as a sane default toolchain
FREEBSD_DEV=(cmake libtool gmake llvm emacs) # gmake instead of make; llvm as a sane default toolchain
FREEBSD_UTILS=(gnuplot graphviz shfmt shellcheck pandoc)
FREEBSD_SECURITY=(gnupg pinentry) # helpful for pass
FREEBSD_MISC=(postgresql16-client syncthing)
@ -346,7 +350,12 @@ EOF
log "Done."
# -------- Doom Emacs --------
# -------- Doom Emacs (requires emacs binary) --------
if ! have emacs; then
log "WARNING: emacs binary not found in PATH — skipping Doom Emacs installation."
log "Install emacs via your package manager and re-run this script, or run:"
log " ~/.emacs.d/bin/doom install"
else
DOOM_DIR="${DOOM_DIR:-$HOME/.emacs.d}"
if [[ -d "$DOOM_DIR/.git" ]]; then
log "Doom Emacs already present at $DOOM_DIR (updating)..."
@ -363,6 +372,7 @@ if [[ -d "$DOOM_DIR" ]]; then
log "Installing Doom Emacs..."
"$DOOM_DIR/bin/doom" install
fi
fi
# -------- asdf plugins --------
if have asdf; then