Skip to content

Instantly share code, notes, and snippets.

@ajchemist
Created October 26, 2016 15:15
Show Gist options
  • Save ajchemist/681d152a565c317e8e99feb779518dfb to your computer and use it in GitHub Desktop.
Save ajchemist/681d152a565c317e8e99feb779518dfb to your computer and use it in GitHub Desktop.
#!/bin/bash
form=$(echo \
\(progn \
\( setenv \"TMPDIR\" \"$TMPDIR\" \) \
"(require 'server)" \
"(message server-socket-dir)" \))
emacs --batch --eval "$form" 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment