]> git.earman.xyz Git - emacsinit.git/commitdiff
Setting and binding for eldoc buffer
authorrearman <rearman@r717.net>
Thu, 16 Oct 2025 14:21:33 +0000 (10:21 -0400)
committerrearman <rearman@r717.net>
Thu, 16 Oct 2025 14:21:33 +0000 (10:21 -0400)
Sometimes the minibuffer gets overwritten when eldoc is active, and in the
case of SLY, it is only visible when point is within the symbol for which you
want documentation.  I added a binding to bring up the eldoc buffer, and set
its default position and size.

init.el
re/re-bindings.el

diff --git a/init.el b/init.el
index 18f141af6a34b90002fdc82f25e779419b44355e..911be2a43a723622669a9c02aa80f54e03dd36ca 100644 (file)
--- a/init.el
+++ b/init.el
@@ -48,6 +48,9 @@
 (setq-default indicate-empty-lines t
              fill-column 78)
 
+(add-to-list 'display-buffer-alist
+            '("^\\*eldoc" display-buffer-at-bottom (window-height . 4)))
+
 (blink-cursor-mode -1)
 (column-number-mode t)
 (size-indication-mode t)
index 9bd82effb1fc041562bbc519bc161cebd722a50c..c26768b96fa4809e7361fd55d64b4a169fb23d41 100644 (file)
 (keymap-global-set "C-<down>" #'enlarge-window)
 (keymap-global-set "C-<left>" #'shrink-window-horizontally)
 (keymap-global-set "C-<right>" #'enlarge-window-horizontally)
-
+(keymap-set help-map "d" #'eldoc-doc-buffer) ; open eldoc buffer when it's getting spammed
+\f
 ;; Mouse
 (keymap-global-unset "M-<down-mouse-1>")
 (keymap-global-unset "M-<drag-mouse-1>")
 (keymap-global-unset "M-<mouse-1>")
 (keymap-global-unset "M-<mouse-2>")
 (keymap-global-unset "M-<mouse-3>")
-
+\f
 ;; Late files and Bookmarks
 (keymap-global-set "C-c r" #'recentf-open-files)
 (keymap-global-set "C-x r B" #'bookmark-jump-other-window)
-
+\f
 ;; Draftweilding
 (keymap-global-set "C-x v C" #'re/vc-clone)
 (keymap-global-set "C-x v b b" #'re/vc-show-branches)