Created
October 24, 2017 04:41
-
-
Save algal/7ae8eb9766441bc4175ebdd7c947f583 to your computer and use it in GitHub Desktop.
emacs-open-new-window.sh
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 | |
emacsclient -n -e "(find-file-other-frame \"$1\")" | |
# For this script to work, you must already have started | |
# an emacs instance and started its server. You can do | |
# that by adding some elisp like the following into | |
# your .emacs file: | |
# | |
# (require 'server) | |
# (server-mode 1) | |
# | |
# | |
# How do modify this script to launch emacs if it's not | |
# already launched? | |
# | |
# I dunno. Tell me how. :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment