Add restclient to Emacs.
This commit is contained in:
parent
c2c0a3b62f
commit
62f13b7789
3
init.el
3
init.el
|
@ -1,6 +1,6 @@
|
||||||
;;; init.el --- tastytea's Emacs init file. -*- lexical-binding: t; -*-
|
;;; 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:
|
;;; Commentary:
|
||||||
;; Requires at least Emacs 26. Most of it will probably work with Emacs 24 and
|
;; Requires at least Emacs 26. Most of it will probably work with Emacs 24 and
|
||||||
|
@ -42,6 +42,7 @@
|
||||||
(require 'programming/c++)
|
(require 'programming/c++)
|
||||||
|
|
||||||
(require 'net/server)
|
(require 'net/server)
|
||||||
|
(require 'net/client)
|
||||||
|
|
||||||
;; Set garbage collection threshold to original value.
|
;; Set garbage collection threshold to original value.
|
||||||
(setq gc-cons-threshold (car (get 'gc-cons-threshold 'standard-value)))
|
(setq gc-cons-threshold (car (get 'gc-cons-threshold 'standard-value)))
|
||||||
|
|
24
init/net/client.el
Normal file
24
init/net/client.el
Normal 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
|
|
@ -1,6 +1,6 @@
|
||||||
;;; server.el --- Set up network stuff.. -*- lexical-binding: t; -*-
|
;;; 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:
|
;;; Commentary:
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
127.0.0.1:51313 31328
|
127.0.0.1:51313 17536
|
||||||
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh
|
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh
|
Loading…
Reference in New Issue
Block a user