My Avatar

LanternD's Castle

PhD Student in ECE @ MSU

Spacemacs Rocks Note Day 10

2017-11-08

A series of notes that I learn Emacs hacking. More on cask and use-package, more on company-mode, backends, group-backends, how to write your own backend.

 

More on cask and use-package

cask

(depends-on "monokai-theme" :git "https://github.com/xxx/yyy" :ref "178dfc9")

Then we can install that stable version to avoid bugs.

use-package

company-mode advanced auto-completion

Backend

(add-hook 'python-mode-hook 
	  (lambda ()
	    (setq (make-local-variable 'company-backends) '(company-anaconda company-dabbrev))))

Group backend

(add-hook 'python-mode-hook 
	  (lambda ()
	    (setq (make-local-variable 'company-backends) '((company-anaconda company-dabbrev-code) company-dabbrev))))

Writing the Simplest Emacs company-mode Backend - Sixty-north

Sort candidates by statistics

Address this next time.



Disqus Comment 0