Skip to content

Instantly share code, notes, and snippets.

@kaustavdm
Last active October 3, 2016 20:12
Show Gist options
  • Save kaustavdm/e979602690bb4b6e0f3cb2cfbb8e1337 to your computer and use it in GitHub Desktop.
Save kaustavdm/e979602690bb4b6e0f3cb2cfbb8e1337 to your computer and use it in GitHub Desktop.
Run emacsclient in detached GUI mode
#!/bin/bash
# Usage: e.sh <args>
# <args> are any valid arguments for emacsclient
nohup $(which emacsclient) -a "" -c "$@" &>/dev/null & disown %%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment