From 0dfafc7604267a6c1e92128f0fb0736f81738702 Mon Sep 17 00:00:00 2001 From: Nir Friedman Date: Tue, 27 Dec 2016 23:31:47 -0500 Subject: [PATCH] Add ycmd-eldoc to ycmd layer --- layers/+tools/ycmd/README.org | 3 ++- layers/+tools/ycmd/packages.el | 11 ++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/layers/+tools/ycmd/README.org b/layers/+tools/ycmd/README.org index 95d37d9bf..25e14d315 100644 --- a/layers/+tools/ycmd/README.org +++ b/layers/+tools/ycmd/README.org @@ -13,7 +13,8 @@ * Description -This layer adds [[https://github.com/abingham/emacs-ycmd][emacs-ycmd]] support. +This layer adds [[https://github.com/abingham/emacs-ycmd][emacs-ycmd]] support, including its integrations with company, +flycheck, and eldoc. * Install ** Layer diff --git a/layers/+tools/ycmd/packages.el b/layers/+tools/ycmd/packages.el index 560414c46..72c264978 100644 --- a/layers/+tools/ycmd/packages.el +++ b/layers/+tools/ycmd/packages.el @@ -28,4 +28,13 @@ (setq-default ycmd-global-config (concat (configuration-layer/get-layer-path 'ycmd) "global_conf.py"))) - (setq-default ycmd-parse-conditions '(save mode-enabled))))) + (setq-default ycmd-parse-conditions '(save mode-enabled))) + :config + (progn + (require 'ycmd-eldoc) + (add-hook 'ycmd-mode-hook 'ycmd-eldoc-setup)))) + +(defun ycmd/init-ycmd-eldoc () + (use-package ycmd-eldoc + :defer t + :init (add-hook 'ycmd-mode-hook 'ycmd-eldoc-setup)))