Skip to content

Instantly share code, notes, and snippets.

@r-medina
r-medina / gist:0d29407b20de545d1cf8
Last active August 29, 2015 14:09
emacs stuff in .bashrc
# 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`: