Skip to content

Instantly share code, notes, and snippets.

Created Feb 13, 2017

What would you like to do?
Pretty print emacs s expressions from the command line
set -o errexit
set -o nounset
set -o pipefail
if [ "$#" != "1" ]; then
echo "Needs precisely one argument" 2>&1
exit 1
emacs -q --batch --eval \
$'(progn (package-initialize) (require \'f) (message (pp (read (f-read (car command-line-args-left))))))' "$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.