Add ycmd-eldoc to ycmd layer

This commit is contained in:
Nir Friedman 2016-12-27 23:31:47 -05:00 committed by d12frosted
parent e85f03080b
commit 0dfafc7604
No known key found for this signature in database
GPG Key ID: 8F60E862D6F5CE8F
2 changed files with 12 additions and 2 deletions

View File

@ -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

View File

@ -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)))