doomemacs/modules/lang/rest/config.el
2017-05-07 02:45:52 +02:00

20 lines
713 B
EmacsLisp

;;; lang/rest/config.el
(def-package! restclient
:commands restclient-mode
: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))
(def-package! company-restclient
:when (featurep! :completion company)
:after restclient
:config (set! :company-backend 'restclient-mode '(company-restclient)))