(maybe-require-package 'httprepl)
(when (maybe-require-package 'restclient)
  (defun sanityinc/restclient ()
    (interactive)
    (with-current-buffer (get-buffer-create "*restclient*")
      (restclient-mode)
      (pop-to-buffer (current-buffer)))))


(provide 'init-http)

(maybe-require-package 'httprepl)
(when (maybe-require-package 'restclient)
  (add-auto-mode 'restclient-mode "\\.rest\\'")

  (defun sanityinc/restclient ()
    (interactive)
    (with-current-buffer (get-buffer-create "*restclient*")
      (restclient-mode)
      (pop-to-buffer (current-buffer)))))


(provide 'init-http)

Use restclient-mode for .rest files
Use restclient-mode for .rest files

arthurl/emacs.d,svenyurgensson/emacs.d,sgarciac/emacs.d,cjqw/emacs.d,blueabysm/emacs.d,dcorking/emacs.d,gsmlg/emacs.d,braveoyster/emacs.d,baohaojun/emacs.d,krzysz00/emacs.d,purcell/emacs.d,wegatron/emacs.d,blueseason/emacs.d,kindoblue/emacs.d,kongfy/emacs.d,benkha/emacs.d,emuio/emacs.d,mmqmzk/emacs.d,qianwan/emacs.d,lust4life/emacs.d,roxolan/emacs.d,me020523/emacs.d