Run emacs or emacsclient
#!/bin/sh EMACS="/usr/bin/emacs" EMACSCLIENT="/usr/bin/emacsclient" $EMACSCLIENT $@ 2> /dev/null if [ $? -ne 0 ]; then exec $EMACS $@ fi
Put this in your ~/.emacs.el :
;; start emacs server (server-start)
DZone Snippets > maxme > emacs
12388 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Maxime Biais http://www.biais.org/blog/
#!/bin/sh EMACS="/usr/bin/emacs" EMACSCLIENT="/usr/bin/emacsclient" $EMACSCLIENT $@ 2> /dev/null if [ $? -ne 0 ]; then exec $EMACS $@ fi
;; start emacs server (server-start)