Skip to content

Instantly share code, notes, and snippets.

@yurrriq
Last active February 18, 2016 11:40
Show Gist options
  • Select an option

  • Save yurrriq/bd7f22be0dffa3bc780d to your computer and use it in GitHub Desktop.

Select an option

Save yurrriq/bd7f22be0dffa3bc780d to your computer and use it in GitHub Desktop.
Fish functions for Emacs and Magit
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment