make-variable-buffer-local -> make-local-variable
It is more correct to use the latter.
This commit is contained in:
parent
fa36014559
commit
746d90c330
2 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ MODES should be one major-mode symbol or a list of them."
|
|||
(lambda () (when (or (eq major-mode mode)
|
||||
(and (boundp mode) (symbol-value mode)))
|
||||
(require 'company)
|
||||
(make-variable-buffer-local 'company-backends)
|
||||
(make-local-variable 'company-backends)
|
||||
(dolist (backend backends)
|
||||
(cl-pushnew backend company-backends :test #'equal)))))
|
||||
(add-hook hook fn))
|
||||
|
|
|
@ -206,7 +206,7 @@
|
|||
;; major-mode as `latex-mode', but uses LaTeX-mode-hook for its mode, which is
|
||||
;; not something `set-company-backend!' anticipates (and shouldn't have to!)
|
||||
(add-hook! LaTeX-mode
|
||||
(make-variable-buffer-local 'company-backends)
|
||||
(make-buffer-local 'company-backends)
|
||||
(company-auctex-init)))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue