mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-23 19:19:50 +00:00
27 lines
908 B
Bash
27 lines
908 B
Bash
#!/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"
|
|
_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
|
|
|
|
# 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
|
|
|
|
_run "[emacs-doom] Refreshing" $HOME/.emacs.d/bin/doom sync
|