mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
17 lines
392 B
Bash
Executable file
17 lines
392 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if ! [ -e ape/ape.S ]; then
|
|
echo please cd to cosmopolitan root directory >&2
|
|
exit 1
|
|
fi
|
|
|
|
COSMOPOLITAN="$PWD"
|
|
EMACSCONFIGS="$HOME/.emacs.d/init.el"
|
|
[ -e "$EMACSCONFIGS" ] || EMACSCONFIGS="$HOME/.emacs"
|
|
|
|
cat >>"$EMACSCONFIGS" <<EOF # idempotent
|
|
(let ((path "$COSMOPOLITAN/tool/emacs"))
|
|
(when (file-directory-p path)
|
|
(add-to-list 'load-path path)
|
|
(require 'cosmo)))
|
|
EOF
|