Run Emacs Or Emacsclient
Join the DZone community and get the full member experience.Join For Free
Automatically run emacs or emacsclient if emacs is already launched.
#!/bin/sh EMACS="/usr/bin/emacs" EMACSCLIENT="/usr/bin/emacsclient" $EMACSCLIENT $@ 2> /dev/null if [ $? -ne 0 ]; then exec $EMACS $@ fiPut this in your ~/.emacs.el :
;; start emacs server (server-start)
Opinions expressed by DZone contributors are their own.