doomemacs/modules/lang/rest/config.el

19 lines
701 B
EmacsLisp
Raw Normal View History

;;; lang/rest/config.el -*- lexical-binding: t; -*-
2017-02-19 18:54:19 -05:00
(def-package! restclient
:mode ("\\.http\\'" . restclient-mode)
:config
(set-popup-rule! "^\\*HTTP Response" :size 0.4 :quit 'other)
(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
(def-package! company-restclient
:when (featurep! :completion company)
2017-02-19 18:54:19 -05:00
:after restclient
:config (set-company-backend! 'restclient-mode 'company-restclient))