Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ccls-initialization-options safe for local variables #47

Closed
madscientist opened this issue May 12, 2019 · 0 comments
Closed

Make ccls-initialization-options safe for local variables #47

madscientist opened this issue May 12, 2019 · 0 comments

Comments

@madscientist
Copy link

Due to the wide range of projects I work on I've been searching for ways to correctly customize them. It seems the "most approved" way so far is to use the .dir-locals.el facility to create directory-local variables: https://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html

However, setting directory-local variables gives a warning unless they're declared to be safe. I've declared this safe in my init.el but it would be nice if ccls.el did this itself, with something like:

(put 'ccls-initialization-options 'safe-local-variable 'listp)

There may be other variables that are also appropriate for this treatment: I didn't check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant