consult-company icon indicating copy to clipboard operation
consult-company copied to clipboard

A consulting-read interface for company.

#+TITLE: consult-company #+AUTHOR: Mohsin Kaleem

#+html:

MELPA

A [[https://github.com/minad/consult][consult]]ing-read interface for [[https://github.com/company-mode/company-mode][company-mode]].

#+CAPTION: Obligatory screenshot of consult-company in action. [[https://user-images.githubusercontent.com/23294780/134369362-2737b57b-ba1c-4062-a063-ecb0ba785e13.png]]

  • Table of Contents :TOC:
  • [[#installation][Installation]]
    • [[#manually][Manually]]
    • [[#from-melpa][From MELPA]]
  • [[#usage][Usage]]
  • Installation ** Manually
    1. Clone the repo.
    2. Add the repo path to your emacs ~load-path~.
    3. Load it when needed.

** From MELPA This package is on [[https://github.com/melpa/melpa][MELPA]]. You can add this to your ~package-archives~ variable and then install through ~M-x package-install~.

#+begin_src emacs-lisp (push '("melpa" . "https://melpa.org/packages/") package-archives) (package-refresh-contents) (package-install 'consult-company) #+end_src

  • Usage I recommend remapping ~completion-at-point~ to ~consult-company~ in company-mode buffers.

    #+begin_src emacs-lisp (define-key company-mode-map [remap completion-at-point] #'consult-company) #+end_src

    You can configure grouping and narrowing of company completion candidates through ~consult-company-narrow~.