From ea862f18cf17fb28e1086d038e2f5c7c16df6a20 Mon Sep 17 00:00:00 2001 From: "Jasper v. B" Date: Wed, 5 Oct 2016 16:19:39 +0200 Subject: [PATCH] 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. --- layers/+tools/ycmd/README.org | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/layers/+tools/ycmd/README.org b/layers/+tools/ycmd/README.org index 0b11329a6..95d37d9bf 100644 --- a/layers/+tools/ycmd/README.org +++ b/layers/+tools/ycmd/README.org @@ -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