From da30d60e6d7c17f26feaee53bec67c8dad836ba2 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Thu, 15 Aug 2019 16:37:40 +0900 Subject: [PATCH] Configure ensime eldoc --- emacs.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/emacs.el b/emacs.el index 50da5c7..70f22b3 100644 --- a/emacs.el +++ b/emacs.el @@ -1220,6 +1220,7 @@ found, otherwise returns nil." ;; Workaround to avoid ensime error ;; (defvar ensime-mode-key-prefix nil) (set-variable 'ensime-startup-notification nil) +(set-variable 'ensime-eldoc-hints 'all) ;; https://blog.shibayu36.org/entry/2015/07/07/103000 (defun my-ensime-enable-eldoc () "Show error message or type name at point by Eldoc." @@ -1228,11 +1229,12 @@ found, otherwise returns nil." (when (ensime-connected-p) (let ((err (ensime-print-errors-at-point))) (or (and err (not (string= err "")) err) - (ensime-type-at-point)))))) + (ensime-type-at-point))))) + ) (eldoc-mode 1) ) -(add-hook 'ensime-mode-hook - 'my-ensime-enable-eldoc) +;; (add-hook 'ensime-mode-hook +;; 'my-ensime-enable-eldoc) (when (safe-require-or-eval 'company) ;; http://qiita.com/sune2/items/b73037f9e85962f5afb7