mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
make-variable-buffer-local -> make-local-variable
It is more correct to use the latter.
This commit is contained in:
@ -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)))
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user