Emacs: Add webpaste.
This commit is contained in:
parent
aee9fc2391
commit
20798ae7b0
|
@ -1,6 +1,6 @@
|
||||||
;;; client.el --- Set up network stuff. -*- lexical-binding: t; -*-
|
;;; client.el --- Network clients. -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;; Time-stamp: <2019-11-09T11:43:07+00:00>
|
;; Time-stamp: <2019-12-13T23:08:43+00:00>
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
|
|
||||||
|
@ -20,5 +20,21 @@
|
||||||
(add-to-list 'company-backends 'company-restclient)
|
(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)
|
(provide 'net/client)
|
||||||
;;; client.el ends here
|
;;; client.el ends here
|
||||||
|
|
Loading…
Reference in New Issue
Block a user