From 310e08a0d554ec2da5354976d2374e1e6e32b615 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Wed, 12 Dec 2018 21:58:54 -0500 Subject: [PATCH] Update eldoc-box-max-pixel-height and README doc - height max 1400 -> 700 - add doc in readme about them --- README.org | 1 + eldoc-box.el | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.org b/README.org index 6f66985..83e249f 100644 --- a/README.org +++ b/README.org @@ -14,6 +14,7 @@ Get the file, add to load path, and - =eldoc-box-border= :: Adjust =:background= of this face for border color. - =eldoc-box-body= :: Adjust =:background= of this face for background color of childframe. ** Variable +- =eldoc-box-max-pixel-width= & =eldoc-box-max-pixel-height= :: Set them according to the screen resolution of your machine. - =eldoc-box-only-multi-line= :: Set this to non-nil and eldoc-box only display multi-line message in childframe. One line messages are left in minibuffer. ** Use with eglot diff --git a/eldoc-box.el b/eldoc-box.el index 267123a..02b8211 100644 --- a/eldoc-box.el +++ b/eldoc-box.el @@ -84,9 +84,12 @@ "Frame parameters used to create the frame.") (defvar eldoc-box-max-pixel-width 800 - "Maximum width of doc childframw in pixel.") -(defvar eldoc-box-max-pixel-height 1400 - "Maximum height of doc childframw in pixel.") + "Maximum width of doc childframw in pixel. +Consider your machine's screen's resolution when setting this variable.") + +(defvar eldoc-box-max-pixel-height 700 + "Maximum height of doc childframw in pixel. +Consider your machine's screen's resolution when setting this variable.") ;;;;; Function