Last active
February 18, 2016 11:40
-
-
Save yurrriq/bd7f22be0dffa3bc780d to your computer and use it in GitHub Desktop.
Fish functions for Emacs and Magit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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