Add restclient to Emacs.

This commit is contained in:
tastytea 2019-11-04 21:10:34 +01:00
parent c2c0a3b62f
commit 62f13b7789
4 changed files with 28 additions and 3 deletions

View File

@ -1,6 +1,6 @@
;;; init.el --- tastytea's Emacs init file. -*- lexical-binding: t; -*-
;; Time-stamp: <2019-11-04T19:41:30+00:00>
;; Time-stamp: <2019-11-04T19:42:29+00:00>
;;; Commentary:
;; Requires at least Emacs 26. Most of it will probably work with Emacs 24 and
@ -42,6 +42,7 @@
(require 'programming/c++)
(require 'net/server)
(require 'net/client)
;; Set garbage collection threshold to original value.
(setq gc-cons-threshold (car (get 'gc-cons-threshold 'standard-value)))

24
init/net/client.el Normal file
View File

@ -0,0 +1,24 @@
;;; client.el --- Set up network stuff.. -*- lexical-binding: t; -*-
;; Time-stamp: <2019-11-04T19:54:18+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)
)
(provide 'net/client)
;;; client.el ends here

View File

@ -1,6 +1,6 @@
;;; server.el --- Set up network stuff.. -*- lexical-binding: t; -*-
;; Time-stamp: <2019-11-04T19:40:54+00:00>
;; Time-stamp: <2019-11-04T19:43:41+00:00>
;;; Commentary:

View File

@ -1,2 +1,2 @@
127.0.0.1:51313 31328
127.0.0.1:51313 17536
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh