Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xuchunyang/another-emacs-server
An Emacs server built on HTTP and JSON
https://github.com/xuchunyang/another-emacs-server
Last synced: about 1 month ago
JSON representation
An Emacs server built on HTTP and JSON
- Host: GitHub
- URL: https://github.com/xuchunyang/another-emacs-server
- Owner: xuchunyang
- License: gpl-3.0
- Created: 2020-03-30T04:01:24.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-31T10:51:32.000Z (almost 5 years ago)
- Last Synced: 2024-10-16T01:45:55.638Z (3 months ago)
- Language: Emacs Lisp
- Homepage:
- Size: 15.6 KB
- Stars: 10
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# An Emacs server built on HTTP and JSON
The builtin Emacs server is built on Unix domain socket, `another-emacs-server`
is builton HTTP and JSON. Because the response is JSON, it's easy and reliable
for other tool to consume.## Usage
Run `M-x another-emacs-server` to start the server. Send
- `{"eval": "expr"}` to eval an expression
- `{"file": ["filename1", "filename2", ...]}` to open filesFor example,
~ $ curl -s -d '{"eval": "emacs-version"}' -H "Content-Type: application/json" localhost:7777 | jq
{
"result": "27.0.90"
}~ $ curl -s -d '{"file": ["/etc/hosts"]}' -H "Content-Type: application/json" localhost:7777 | jq
{
"result": "OK"
}## Requires
- Emacs 25.1
- web-server 20200312