2019-12-14 00:09:08 +01:00
|
|
|
;;; client.el --- Network clients. -*- lexical-binding: t; -*-
|
2019-11-04 21:10:34 +01:00
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
|
|
|
|
;;; Code:
|
|
|
|
|
2020-03-18 15:00:17 +01:00
|
|
|
(require 'basics/package-management)
|
2020-12-08 14:10:01 +01:00
|
|
|
(require 'misc/completion)
|
2020-03-18 15:00:17 +01:00
|
|
|
|
2019-11-04 21:10:34 +01:00
|
|
|
;; Explore and test HTTP REST webservices.
|
|
|
|
(use-package restclient
|
2020-05-27 04:21:20 +02:00
|
|
|
:mode ("\\.restclient$" . restclient-mode))
|
2019-11-04 21:10:34 +01:00
|
|
|
|
|
|
|
;; Company completion for restclient.
|
|
|
|
(use-package company-restclient
|
|
|
|
:after (restclient company)
|
2020-05-27 04:21:20 +02:00
|
|
|
:config (add-to-list 'company-backends 'company-restclient))
|
2019-11-04 21:10:34 +01:00
|
|
|
|
2019-12-14 00:09:08 +01:00
|
|
|
(use-package webpaste
|
2020-02-18 16:59:05 +01:00
|
|
|
:commands (webpaste-paste-region webpaste-paste-buffer)
|
2020-05-27 04:21:20 +02:00
|
|
|
: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)))
|
2019-12-14 00:09:08 +01:00
|
|
|
|
2020-05-26 07:07:16 +02:00
|
|
|
;; Gemini and Gopher client.
|
|
|
|
(use-package elpher)
|
|
|
|
|
2019-11-04 21:10:34 +01:00
|
|
|
(provide 'net/client)
|
|
|
|
;;; client.el ends here
|