dotfiles/recipes/emacs-doom

28 lines
908 B
Text
Raw Normal View History

2019-09-13 01:17:37 +00:00
#!/bin/bash
# Description: DOOM Emacs
set -e
_recipe emacs
_recipe git
_recipe _path
# Include japanese language support utilties used by configured packages
_recipe japanese
_git "https://github.com/doomemacs/doomemacs" "$HOME/.emacs.d"
2019-09-13 01:17:37 +00:00
_path "$HOME/.emacs.d/bin"
if ! [ -d ${HOME}/.doom.d ]; then
_run "[emacs-doom] Install .doom.d" ln -s ${HOME}/dotfiles/.doom.d ${HOME}/.doom.d
fi
2023-02-14 02:13:07 +00:00
# HACK: Install a local copy of ob-ledger
# Required until https://github.com/doomemacs/doomemacs/issues/6457 is fixed
if ! [ -f ${HOME}/.doom.d/lisp/ob-ledger/ob-ledger.el ]; then
mkdir -p ${HOME}/.doom.d/lisp/ob-ledger
_run "[curl] Installing local ob-ledger" curl -sLo ${HOME}/.doom.d/lisp/ob-ledger/ob-ledger.el \
'https://raw.githubusercontent.com/overtone/emacs-live/master/packs/stable/org-pack/lib/org-mode/lisp/ob-ledger.el'
fi
2021-01-22 00:21:46 +00:00
_run "[emacs-doom] Refreshing" $HOME/.emacs.d/bin/doom sync