All Projects → hlissner → emacs-company-dict

hlissner / emacs-company-dict

Licence: MIT license
A port of ac-source-dictionary to company-mode, plus annotation and documentation support.

Programming Languages

emacs lisp
2029 projects

Projects that are alternatives of or similar to emacs-company-dict

Web Mode
web template editing mode for emacs
Stars: ✭ 1,470 (+4641.94%)
Mutual labels:  melpa
Modern Cpp Font Lock
C++ font-lock for Emacs
Stars: ✭ 159 (+412.9%)
Mutual labels:  melpa
emacs-easy-jekyll
Emacs major mode for managing jekyll
Stars: ✭ 53 (+70.97%)
Mutual labels:  melpa
Selectric Mode
⌨ Make your Emacs sound like a proper typewriter.
Stars: ✭ 121 (+290.32%)
Mutual labels:  melpa
Explain Pause Mode
top, but for Emacs.
Stars: ✭ 158 (+409.68%)
Mutual labels:  melpa
Bm
bm.el -- Visual Bookmarks for GNU Emacs
Stars: ✭ 204 (+558.06%)
Mutual labels:  melpa
Lsp Dart
lsp-mode ❤️ dart
Stars: ✭ 94 (+203.23%)
Mutual labels:  melpa
company-shell
No description or website provided.
Stars: ✭ 89 (+187.1%)
Mutual labels:  company-mode
Lsp Haskell
lsp-mode ❤️ haskell
Stars: ✭ 158 (+409.68%)
Mutual labels:  melpa
eshell-up
Quickly go to a specific parent directory in eshell
Stars: ✭ 28 (-9.68%)
Mutual labels:  melpa
Auto Complete
Emacs auto-complete package
Stars: ✭ 1,622 (+5132.26%)
Mutual labels:  melpa
Linum Relative
display relative line number in the left margin in emacs
Stars: ✭ 152 (+390.32%)
Mutual labels:  melpa
Emacs Easy Hugo
Emacs major mode for managing hugo
Stars: ✭ 235 (+658.06%)
Mutual labels:  melpa
Graphql Mode
An Emacs mode for GraphQL
Stars: ✭ 120 (+287.1%)
Mutual labels:  melpa
osx-trash
Make Emacs' delete-by-moving-to-trash do what you expect it to do on OS X.
Stars: ✭ 22 (-29.03%)
Mutual labels:  melpa
Nimbus Theme
The best dark theme for Emacs
Stars: ✭ 102 (+229.03%)
Mutual labels:  melpa
Evil Multiedit
Multiple cursors for evil-mode, based on iedit
Stars: ✭ 200 (+545.16%)
Mutual labels:  melpa
hover.el
Flutter tool to run hover on emacs
Stars: ✭ 38 (+22.58%)
Mutual labels:  melpa
wolfram.el
Wolfram Alpha integration
Stars: ✭ 69 (+122.58%)
Mutual labels:  melpa
elcord
Discord Rich Presence / Gamebridge support for Emacs!
Stars: ✭ 149 (+380.65%)
Mutual labels:  melpa

MIT MELPA MELPA Stable

Company Dictionary

This simple company backend emulates ac-source-dictionary and vim's dictionary omnicompletion (C-x C-k). It's much like company-keywords, but with lazy-loaded dictionary files, and support for annotations and documentation.

  • It is meant as an alternative to company-keywords.
  • A dictionary is a plaintext file named after the major-mode in which it should be active.
  • The dictionary file all applies to all modes.
  • This file is a newline-delimited list of keywords.
  • Each keyword is tab-delimited in the following format: [keyword] [[annotation] [documentation]]
    • e.g. os.path.basename [function] Return the base name of pathname path
    • Screenshot
    • NOTE: the parser squashes multiple tab characters, so use as many tabs as you'd like to organize your dictionary files.

Installation

M-x package-install RET company-dict

Usage

(require 'company-dict)

;; Where to look for dictionary files. Default is ~/.emacs.d/dict
(setq company-dict-dir (concat user-emacs-directory "dict/"))

;; Optional: if you want it available everywhere
(add-to-list 'company-backends 'company-dict)

;; Optional: evil-mode users may prefer binding this to C-x C-k for vim
;; omni-completion-like dictionary completion
(define-key evil-insert-state-map (kbd "C-x C-k") 'company-dict)

Add minor mode symbols to company-dict-minor-mode-list to make company-dict aware of minor mode dictionaries.

Yasnippet integration

company-dict autocompletions are automatically expanded like they're yasnippet snippets if yasnippet is installed and yas-minor-mode is enabled in the current buffer.

Yasnippet is not a dependency of company-dict, so you must install and enable it yourself. Which can be done through MELPA: M-x package-install RET yasnippet

To disable this behavior, set company-dict-enable-yasnippet to nil

Configuration

  • company-dict-minor-mode-alist
  • company-dict-dir
  • company-dict-minor-mode-alist
  • company-dict-enable-fuzzy
  • company-dict-enable-yasnippet
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].