-
Install emacs
brew cask install emacs
-
Clone this configuration to
~/.doom.d
git clone https://github.com/raydel95/.doom.d.git ~/.doom.d
-
Clone doom emacs distribution in
.emacs.d
git clone --depth 1 https://github.com/hlissner/doom-emacs ~/.emacs.d
Check chemacs if you want to install it alongside another emacs distro.
-
Add
$DOOM-PATH/.emacs.d/bin
to your pathexport PATH="$HOME/.emacs.d/bin:$PATH"
-
Run
doom sync
-
Start
emacs
Add this to your zsh config if vterm is used (for more details check emacs-libvterm):
# Doom vterm
function vterm_printf(){
if [ -n "$TMUX" ]; then
# Tell tmux to pass the escape sequences through
# (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324)
printf "\ePtmux;\e\e]%s\007\e\\" "$1"
elif [ "${TERM%%-*}" = "screen" ]; then
# GNU screen (screen, screen-256color, screen-256color-bce)
printf "\eP\e]%s\007\e\\" "$1"
else
printf "\e]%s\e\\" "$1"
fi
}
vterm_prompt_end() {
vterm_printf "51;A$(whoami)@$(hostname):$(pwd)";
}
setopt PROMPT_SUBST
PROMPT=$PROMPT'%{$(vterm_prompt_end)%}'