dsnipe
12/4/2016 - 8:53 PM

fish.sh

function et -d 'Start an Emacs client in the terminal,
starting the server as necessary.'
  emacsclient -cnw -a "" $argv
end

function ec -d 'Start an Emacs client in the Cocoa GUI,
starting the server as necessary.'
	emacsclient -cna "" $argv
end

function e -d 'Even shorter alias for `ec`'
  ec $argv
end

function magit-status -d 'Start an Emacs client in the terminal,
call magit-status with the current working directory, and delete other windows.'
  et -e '(progn (magit-status "'(pwd)'") (delete-other-windows))'
end