Mark company-clang-arguments as a safe local variable
This commit is contained in:
7
init.el
7
init.el
@@ -317,11 +317,18 @@
|
||||
(list sml/pre-id-separator)
|
||||
mode-line-rest))))
|
||||
|
||||
(defun nil-orlist-of-strings-p (var)
|
||||
"Return t if VAR is either nil or a list holding only strings."
|
||||
(or (null var)
|
||||
(not (null (delq nil
|
||||
(mapcar (lambda (x) (and (stringp x) x)) var))))))
|
||||
|
||||
(use-package company
|
||||
:config
|
||||
(setq company-idle-delay nil
|
||||
company-frontends '(company-pseudo-tooltip-frontend
|
||||
company-echo-metadata-frontend))
|
||||
(put 'company-clang-arguments 'safe-local-variable #'nil-or-list-of-strings-p)
|
||||
(global-company-mode))
|
||||
|
||||
(use-package helm-company
|
||||
|
Reference in New Issue
Block a user