This file contains 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
# checks if there is an emacs daemon running: yes - open a client with the file, no - | |
# start a daemon, open client | |
# | |
# did this because i only use emacs in terminal and dont want | |
# emacsclient <file_name> to open file in an open frame | |
# | |
# caution: even though all arguments passed via `${@:1}`, `emacsclient` only opens | |
# one file, unlike `emacs` | |
# | |
# excluding `grep` from `ps`: |