2017-02-19 18:54:19 -05:00
|
|
|
;;; lang/rest/config.el
|
|
|
|
|
2017-02-23 00:06:12 -05:00
|
|
|
(def-package! restclient
|
2017-02-19 18:54:19 -05:00
|
|
|
:commands restclient-mode
|
2017-05-07 02:27:18 +02:00
|
|
|
:mode ("\\.http$" . restclient-mode)
|
|
|
|
:config
|
|
|
|
(set! :popup "*HTTP Response*" :size 30 :select t :noesc t :autokill t)
|
|
|
|
(map! :mode restclient-mode
|
|
|
|
:n [M-return] 'restclient-http-send-current
|
|
|
|
:localleader
|
|
|
|
:desc "Execute HTTP request" :n "e" 'restclient-http-send-current
|
|
|
|
:desc "Execute raw HTTP request" :n "E" 'restclient-http-send-current-raw
|
|
|
|
:desc "Copy curl command" :n "c" 'restclient-copy-curl-command))
|
2017-02-19 18:54:19 -05:00
|
|
|
|
2017-03-19 22:47:50 -04:00
|
|
|
|
2017-02-23 00:06:12 -05:00
|
|
|
(def-package! company-restclient
|
2017-03-19 22:47:50 -04:00
|
|
|
:when (featurep! :completion company)
|
2017-02-19 18:54:19 -05:00
|
|
|
:after restclient
|
2017-02-23 00:06:12 -05:00
|
|
|
:config (set! :company-backend 'restclient-mode '(company-restclient)))
|