diff options
| author | Thomas Schneider <qsx@qsx.re> | 2019-04-03 23:19:26 +0200 |
|---|---|---|
| committer | Thomas Schneider <qsx@qsx.re> | 2019-04-03 23:19:26 +0200 |
| commit | 43b5b93a7018c8ab6b944aa61ebeb894b45e8229 (patch) | |
| tree | 3c24e45db1390e173728de888f403c0d86bfd20e /dot.emacs.d/init.el | |
| parent | edde7ff4aede76b5cfa4705f96825bfba42a2888 (diff) | |
Emacs: Add some company backends
Diffstat (limited to 'dot.emacs.d/init.el')
| -rw-r--r-- | dot.emacs.d/init.el | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/dot.emacs.d/init.el b/dot.emacs.d/init.el index 5840c56..034f64e 100644 --- a/dot.emacs.d/init.el +++ b/dot.emacs.d/init.el @@ -60,6 +60,21 @@ ([remap completion-at-point] . #'company-complete)) :config (global-company-mode)) +(use-package company-math + :config + (add-to-list 'company-backends 'company-math-symbols-unicode) + (add-hook 'TeX-mode-hook (defun my-TeX-mode-hook-company () + (setq-local company-backends + (append '((company-math-symbols-latex company-latex-commands)) + company-backends))))) +(use-package company-auctex + :config (company-auctex-init)) +(use-package company-jedi + :config + (add-hook 'python-mode-hook (defun my-python-mode-hook-jedi () + (make-local-variable company-backends) + (add-to-list 'company-backends 'company-jedi)))) + (use-package mercurial :bind-keymap ("C-c H" . hg-global-map)) |
