common/home/spacemacs/setup-macos.sh

14 lines
298 B
Bash
Raw Normal View History

#!/bin/bash
relative() {
grealpath --relative-to=$1 $2
}
DIR=~/Library/LaunchAgents/
BASE=$(relative $DIR $PWD)
ln -s $BASE/daemon.plist ~/Library/LaunchAgents/gnu.emacs.daemon.plist
DIR=~/Applications
BASE=$(relative $DIR $PWD)
ln -s $BASE/emacsclient.applescript ~/Applications/Spacemacs.app