Skip to content

Commit

Permalink
Do not globally mutate company-backends
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasPetton committed Feb 24, 2017
1 parent ebef12a commit 83ad172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jade-scratch.el
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ If there is no current connection, throw an error."
(js2-mode)
(jade-interaction-mode)
(setq-local jade-connection connection)
(add-to-list 'company-backends 'company-jade-repl)
(setq-local company-backends '(company-jade-repl))
(jade-scratch-insert-welcome-message)))

(defun jade-scratch-insert-welcome-message ()
Expand Down

0 comments on commit 83ad172

Please sign in to comment.