Skip to content

Instantly share code, notes, and snippets.

@bounceme
Last active March 18, 2017 20:30
Show Gist options
  • Save bounceme/c3343b8e88deea0cd146dee5bc5ea9ca to your computer and use it in GitHub Desktop.
Save bounceme/c3343b8e88deea0cd146dee5bc5ea9ca to your computer and use it in GitHub Desktop.
command! Restclient echon system(join(['emacs',expand('%'),'--quick','--batch','--eval="'
\ .'(progn (setq package-load-list ''((restclient t)))'
\ .'(package-initialize)(require ''restclient)(restclient-mode)'
\ .'(goto-char (point-min)) (forward-line (1- '.line('.').'))'
\ .'(restclient-http-send-current)'
\ .'(while restclient-within-call (sit-for 0.05))'
\ .'(switch-to-buffer \"*HTTP Response*\" )(princ (buffer-substring-no-properties (point-min)(point-max)))(terpri)))"'
\ , '2>/dev/null']))
@bounceme
Copy link
Author

promise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment