cite 'about-alias'
about-alias 'emacs editor'

case $OSTYPE in
  linux*)
    alias em='emacs'
    alias e='emacsclient -n'
    ;;
  darwin*)
    alias em='open -a emacs'
    ;;
esac

cite 'about-alias'
about-alias 'emacs editor'

case $OSTYPE in
  linux*)
    alias em='emacs'
    alias e='emacsclient -n'
    alias E="SUDO_EDITOR=\"emacsclient -c -a emacs\" sudoedit"
    ;;
  darwin*)
    alias em='open -a emacs'
    ;;
esac

Add alias 'E' for sudo-editing with emacsclient
Add alias 'E' for sudo-editing with emacsclient

More description available at http://emacs-fu.blogspot.com/2011/12/system-administration-with-emacs.html
