company-restclient |travis| |melpa|
December 3, 2015 ยท View on GitHub
===================================== company-restclient |travis| |melpa|
Company-mode_ completion back-end for restclient-mode_.
It provides auto-completion for HTTP methods and headers in restclient-mode.
Completion source is given by know-your-http-well.
Installation
Depends
- cl-lib
company-mode_know-your-http-well_restclient-mode_
Setup from MELPA_
-
Install from
MELPA_::M-x package-install RET company-restclient RET
-
Add
company-restclienttocompany-backendsafter loadingcompany-mode_... code:: emacs-lisp
(add-to-list 'company-backends 'company-restclient)
Setup from Git
-
Install from Git::
-
Add
company-restclienttocompany-backendsafter loadingcompany-mode_... code:: emacs-lisp
(add-to-list 'load-path "/path/to/company-restclient") (add-to-list 'company-backends 'company-restclient)
Feature
-
HTTP method name completion
-
HTTP header name completion
If header name starts with uppercase character, the completion result is capitalized (e.g. "Content-Type"). Otherwise, the completion result contains lowercase characters only (e.g. "content-type").
-
HTTP header value completion
If header name matches with key of a cutomizable association list,
company-restclient-header-values, the corresponding value, list of strings, is used for completion candidates. -
Description about HTTP method and header is displayed in minibuffer
-
Variable name completion
License
Public domain
.. _company-mode: https://company-mode.github.io/ .. _restclient-mode: https://github.com/pashky/restclient.el .. _know-your-http-well: https://github.com/for-GET/know-your-http-well .. _MELPA: https://melpa.org/ .. |travis| image:: https://travis-ci.org/iquiw/company-restclient.svg?branch=master :target: https://travis-ci.org/iquiw/company-restclient .. |melpa| image:: https://melpa.org/packages/company-restclient-badge.svg :target: https://melpa.org/#/company-restclient