lang/rest: minor refactor
This commit is contained in:
parent
e73a01bcbd
commit
c22d4e42a9
1 changed files with 4 additions and 4 deletions
|
@ -2,18 +2,18 @@
|
||||||
|
|
||||||
(use-package! restclient
|
(use-package! restclient
|
||||||
:mode ("\\.http\\'" . restclient-mode)
|
:mode ("\\.http\\'" . restclient-mode)
|
||||||
|
;; line numbers aren't enabled by default in fundamental-mode-derived modes
|
||||||
|
:hook (restclient-mode . display-line-numbers-mode)
|
||||||
:config
|
:config
|
||||||
(set-popup-rule! "^\\*HTTP Response" :size 0.4 :quit 'other)
|
(set-popup-rule! "^\\*HTTP Response" :size 0.4 :quit 'other)
|
||||||
|
|
||||||
;; line numbers aren't enabled by default in fundamental-mode-derived modes
|
;; TODO PR this upstream! This adds imenu support to `restclient-mode'
|
||||||
(add-hook 'restclient-mode-hook #'display-line-numbers-mode)
|
|
||||||
|
|
||||||
(setq-hook! 'restclient-mode-hook
|
(setq-hook! 'restclient-mode-hook
|
||||||
imenu-generic-expression '((nil "^[A-Z]+\s+.+" 0)))
|
imenu-generic-expression '((nil "^[A-Z]+\s+.+" 0)))
|
||||||
|
|
||||||
(defadvice! +rest--permit-self-signed-ssl-a (orig-fn &rest args)
|
(defadvice! +rest--permit-self-signed-ssl-a (orig-fn &rest args)
|
||||||
"Forces underlying SSL verification to prompt for self-signed or invalid
|
"Forces underlying SSL verification to prompt for self-signed or invalid
|
||||||
certs, rather than silently reject them."
|
certs, rather than reject them silently."
|
||||||
:around #'restclient-http-do
|
:around #'restclient-http-do
|
||||||
(let (gnutls-verify-error tls-checktrust)
|
(let (gnutls-verify-error tls-checktrust)
|
||||||
(apply orig-fn args)))
|
(apply orig-fn args)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue