summaryrefslogtreecommitdiffstats
path: root/lisp/init-restclient.el
blob: 542325d18588541d66a5cfd3741cf923b8a08393 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
;;; init-restclient.el --- configure restclient  -*- lexical-binding:t -*-
;;; Commentary:
;;; Code:

(use-package restclient
  :ensure t
  :init
  ;; limit number of times vars are substituted
  (setq restclient-vars-max-passes 2)
  ;; use matching client certificates from ~/.authinfo
  (setq network-stream-use-client-certificates t)
  ;; use this mode for .http extension
  :mode (("\\.http\\'" . restclient-mode)))

(provide 'init-restclient)

;;; init-restclient.el ends here