-
-
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
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
#!/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