Mark company-clang-arguments as a safe local variable

This commit is contained in:
2018-07-02 09:37:00 +02:00
parent a2e7c80eeb
commit fc99d577fa
2 changed files with 8 additions and 6 deletions

View File

@@ -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