Skip to content

Instantly share code, notes, and snippets.

@rsdy
Last active December 12, 2015 01:19
Show Gist options
  • Save rsdy/4690494 to your computer and use it in GitHub Desktop.
Save rsdy/4690494 to your computer and use it in GitHub Desktop.
open the file in emacs and switch to the emacs workspace at the same time
#!/bin/sh
# ~/bin/e
emacsclient --alternate-editor="emacs" -n "$@" 2>/dev/null & disown
# 4 is the number of the virtual desktop where emacs resides
# the wm should spawn a new instance there automagically
wmctrl -s 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment