Skip to content

Instantly share code, notes, and snippets.

@algal
Created October 24, 2017 04:41
Show Gist options
  • Save algal/7ae8eb9766441bc4175ebdd7c947f583 to your computer and use it in GitHub Desktop.
Save algal/7ae8eb9766441bc4175ebdd7c947f583 to your computer and use it in GitHub Desktop.
emacs-open-new-window.sh
#!/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