summary refs log tree commit diff
path: root/emacs/custom/my-eldoc.el
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-10-14 17:40:33 -0700
committerFranck Cuny <franck@fcuny.net>2022-10-14 17:40:33 -0700
commite599383162f5103d033a61be833aa27fef1895a5 (patch)
tree21e75fb2c3f7607a3147c9a479599a57e1d273ea /emacs/custom/my-eldoc.el
parentfix(prog/lsp): apply a number of fixes related to LSP (diff)
downloademacs.d-e599383162f5103d033a61be833aa27fef1895a5.tar.gz
ref: move flymake and eldoc configuration to their own libraries
Change-Id: Ida9e0f7d6ee25cf5fe8e208d1ae5c77aa28cfe0f
Diffstat (limited to 'emacs/custom/my-eldoc.el')
-rw-r--r--emacs/custom/my-eldoc.el18
1 files changed, 18 insertions, 0 deletions
diff --git a/emacs/custom/my-eldoc.el b/emacs/custom/my-eldoc.el
new file mode 100644
index 0000000..ff3dc0c
--- /dev/null
+++ b/emacs/custom/my-eldoc.el
@@ -0,0 +1,18 @@
+;;; my-eldoc.el --- eldoc configuration -*- lexical-binding: t -*-
+;; Author: Franck Cuny <franck@fcuny.net>
+
+;;; Commentary:
+
+;;; Code:
+
+(setq eldoc-idle-delay 1
+      eldoc-documentation-strategy #'eldoc-documentation-default
+      eldoc-echo-area-prefer-doc-buffer 'maybe
+      eldoc-echo-area-use-multiline-p nil)
+
+(when (boundp eldoc-echo-area-display-truncation-message)
+  (setq eldoc-echo-area-display-truncation-message nil))
+
+(provide 'my-eldoc)
+
+;;; my-eldoc.el ends here