.emacs.d/init.d/net/client.el
tastytea 2d576fec10 Rename .emacs/init → .emacs/init.d and fix comment-face.
Inheriting `font-lock-comment-face` in `font-lock-comment-face` would lock up
Emacs.
2019-12-26 19:23:43 +01:00

41 lines
897 B
EmacsLisp

;;; client.el --- Network clients. -*- lexical-binding: t; -*-
;; Time-stamp: <2019-12-15T10:47:38+00:00>
;;; Commentary:
;;; Code:
;; Explore and test HTTP REST webservices.
(use-package restclient
:mode
("\\.restclient$" . restclient-mode)
)
;; Company completion for restclient.
(use-package company-restclient
:after (restclient company)
:config
(add-to-list 'company-backends 'company-restclient)
)
(use-package webpaste
:custom
(webpaste-provider-priority '("dpaste.org" "dpaste.com"))
:config
(add-to-list
'webpaste-providers-alist
'("dpaste.org"
:uri "https://dpaste.org/api/"
:post-data (("expires" . 86400))
:post-field "content"
:post-lang-field-name "lexer"
:lang-overrides ((emacs-lisp-mode . "clojure"))
:success-lambda webpaste--providers-success-returned-string))
)
(provide 'net/client)
;;; client.el ends here