Clean up "lst:setup-company"
This commit is contained in:
parent
3bee5ba2a4
commit
c3ac03da92
20
README.org
20
README.org
@ -1520,19 +1520,17 @@ configures =company= after ensuring the =company= installation.
|
|||||||
#+caption: Setup =company=.
|
#+caption: Setup =company=.
|
||||||
#+name: lst:setup-company
|
#+name: lst:setup-company
|
||||||
#+begin_src emacs-lisp -n :results silent
|
#+begin_src emacs-lisp -n :results silent
|
||||||
(when (and (ensure-package-installation 'company)
|
(when (ensure-package-installation 'company)
|
||||||
(fboundp 'company-mode))
|
|
||||||
;; https://github.com/purcell/emacs.d/issues/778
|
;; https://github.com/purcell/emacs.d/issues/778
|
||||||
(setopt company-transformers '(company-sort-by-occurrence))
|
(setopt company-transformers '(company-sort-by-occurrence))
|
||||||
(dolist (symbol '(LaTeX-mode-hook
|
(add-hook 'LaTeX-mode-hook #'company-mode)
|
||||||
org-mode-hook
|
(add-hook 'org-mode-hook #'company-mode)
|
||||||
emacs-lisp-mode-hook
|
(add-hook 'emacs-lisp-mode-hook #'company-mode)
|
||||||
lisp-interaction-mode-hook
|
(add-hook 'lisp-interaction-mode-hook #'company-mode)
|
||||||
lisp-mode-hook
|
(add-hook 'lisp-mode-hook #'company-mode)
|
||||||
python-mode-hook
|
(add-hook 'python-mode-hook #'company-mode)
|
||||||
ielm-mode-hook
|
(add-hook 'ielm-mode-hook #'company-mode)
|
||||||
sly-mrepl-mode-hook))
|
(add-hook 'sly-mrepl-mode-hook #'company-mode))
|
||||||
(add-hook symbol #'company-mode)))
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* [[info:emacs#Search][Search and replace (info)]]
|
* [[info:emacs#Search][Search and replace (info)]]
|
||||||
|
Loading…
Reference in New Issue
Block a user