Add a note about filename expansions

This is mentioned in
[emacs-ycmd](https://github.com/abingham/emacs-ycmd#quickstart)
documentation as well, but it doesn't hurt to have it here as well.
This commit is contained in:
Jasper v. B 2016-10-05 16:19:39 +02:00 committed by Eivind Fonn
parent 00e0b99c35
commit ea862f18cf
1 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,11 @@ file.
#+BEGIN_SRC emacs-lisp
(setq ycmd-server-command '("python" "/path/to/YouCompleteMe/third_party/ycmd/ycmd"))
#+END_SRC
Note that no filename expansions are done, so =~=-paths will not work out of the box.
If you need expansions, you can use Emacs's =file-truename= like this:
#+BEGIN_SRC emacs-lisp
(setq ycmd-server-command (list "python" (file-truename "~/some/path")))
#+END_SRC
3) By default, spacemacs configures ycmd for getting the compilation flags from either
a compile_commands.json or a .clang_complete file and get additionnal flags from a
.ycm_extra_flags file. If you do not like this behaviour, you can write your own