Mark company-clang-arguments as a safe local variable
This commit is contained in:
parent
a2e7c80eeb
commit
fc99d577fa
@ -166,12 +166,7 @@
|
|||||||
yasnippet
|
yasnippet
|
||||||
zone-nyan
|
zone-nyan
|
||||||
zygospore)))
|
zygospore)))
|
||||||
'(safe-local-variable-values
|
'(safe-local-variable-values (quote ((bug-reference-bug-regexp . "#\\(?2:[0-9]+\\)"))))
|
||||||
(quote
|
|
||||||
((company-clang-arguments "-I.." "-I/usr/include/libsecret-1" "-I/usr/include/glib-2.0" "-I/usr/lib64/glib-2.0/include" "-I/usr/include/gtk-3.0" "-I/usr/include/pango-1.0" "-I/usr/include/fribidi" "-I/usr/include/cairo" "-I/usr/include/pixman-1" "-I/usr/include/freetype2" "-I/usr/include/libpng16" "-I/usr/include/uuid" "-I/usr/include/harfbuzz" "-I/usr/include/gdk-pixbuf-2.0" "-I/usr/include/gio-unix-2.0/" "-I/usr/include/libdrm" "-I/usr/include/atk-1.0" "-I/usr/include/at-spi2-atk/2.0" "-I/usr/include/at-spi-2.0" "-I/usr/include/dbus-1.0" "-I/usr/lib64/dbus-1.0/include" "-I/usr/include/libsoup-2.4" "-I/usr/include/libxml2" "-I/usr/include/json-glib-1.0")
|
|
||||||
(company-clang-arguments "-I.." "-I/usr/include/glib-2.0" "-I/usr/lib64/glib-2.0/include" "-I/usr/include/gtk-3.0" "-I/usr/include/pango-1.0" "-I/usr/include/fribidi" "-I/usr/include/cairo" "-I/usr/include/pixman-1" "-I/usr/include/freetype2" "-I/usr/include/libpng16" "-I/usr/include/uuid" "-I/usr/include/harfbuzz" "-I/usr/include/gdk-pixbuf-2.0" "-I/usr/include/gio-unix-2.0/" "-I/usr/include/libdrm" "-I/usr/include/atk-1.0" "-I/usr/include/at-spi2-atk/2.0" "-I/usr/include/at-spi-2.0" "-I/usr/include/dbus-1.0" "-I/usr/lib64/dbus-1.0/include" "-I/usr/include/libsoup-2.4" "-I/usr/include/libxml2" "-I/usr/include/json-glib-1.0")
|
|
||||||
(company-clang-arguments)
|
|
||||||
(bug-reference-bug-regexp . "#\\(?2:[0-9]+\\)"))))
|
|
||||||
'(scroll-margin 2)
|
'(scroll-margin 2)
|
||||||
'(sgml-basic-offset 4)
|
'(sgml-basic-offset 4)
|
||||||
'(show-trailing-whitespace t)
|
'(show-trailing-whitespace t)
|
||||||
|
7
init.el
7
init.el
@ -317,11 +317,18 @@
|
|||||||
(list sml/pre-id-separator)
|
(list sml/pre-id-separator)
|
||||||
mode-line-rest))))
|
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
|
(use-package company
|
||||||
:config
|
:config
|
||||||
(setq company-idle-delay nil
|
(setq company-idle-delay nil
|
||||||
company-frontends '(company-pseudo-tooltip-frontend
|
company-frontends '(company-pseudo-tooltip-frontend
|
||||||
company-echo-metadata-frontend))
|
company-echo-metadata-frontend))
|
||||||
|
(put 'company-clang-arguments 'safe-local-variable #'nil-or-list-of-strings-p)
|
||||||
(global-company-mode))
|
(global-company-mode))
|
||||||
|
|
||||||
(use-package helm-company
|
(use-package helm-company
|
||||||
|
Loading…
Reference in New Issue
Block a user