I want to do it with lisp. Have made this interactive function to
set up the company-backends, but instead of applying the changes
locally, I want to apply them globally.
(defun companiol-backends-kntlr (actm-seqr)
(interactive
(let* ( (cseq '("company-dabbrev"
"company-dabbrev-code"
"company-keywords"
"company-capf"
"company-yasnippet"
"company-files"))
(backends-seltr
(completing-read-multiple "Backends: " cseq nil t)))
(list (mapcar #'intern backends-seltr))))
(setq company-backends actm-seqr)
;; Refresh company-mode to apply the changes
(when (bound-and-true-p company-mode)
(company-mode -1) (company-mode 1)) )