Last active
March 18, 2017 20:30
-
-
Save bounceme/c3343b8e88deea0cd146dee5bc5ea9ca to your computer and use it in GitHub Desktop.
This file contains 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
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'])) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
promise