From 8a616cb04084c7ac9f08d47f581f83a6af6d3367 Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Sat, 4 Apr 2015 01:00:41 -0400 Subject: [PATCH] ycmd layer: remove hardcoded path --- contrib/ycmd/packages.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/ycmd/packages.el b/contrib/ycmd/packages.el index 92811f08a..192385f96 100644 --- a/contrib/ycmd/packages.el +++ b/contrib/ycmd/packages.el @@ -32,8 +32,8 @@ which require an initialization must be listed explicitly in the list.") ;; define excplicitly the hooks here (add-hook 'c++-mode-hook 'ycmd-mode) (unless (boundp 'ycmd-global-config) - (setq-default ycmd-global-config - (expand-file-name "~/.emacs.d/contrib/ycmd/global_conf.py"))) + (let ((dir (configuration-layer/get-layer-property 'ycmd :dir))) + (setq-default ycmd-global-config (concat dir "global_conf.py")))) (evil-leader/set-key-for-mode 'c++-mode "mgg" 'ycmd-goto "mgG" 'ycmd-goto-imprecise))))