My Avatar

LanternD's Castle

An electronics enthusiast - survive technically

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

1
(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

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

Group backend

1
2
3
(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