From: rearman Date: Thu, 16 Oct 2025 14:21:33 +0000 (-0400) Subject: Setting and binding for eldoc buffer X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=2631c6d6a5a35d218d96fe74b1512a9e7fca6746;p=emacsinit.git Setting and binding for eldoc buffer 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. --- diff --git a/init.el b/init.el index 18f141a..911be2a 100644 --- 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) diff --git a/re/re-bindings.el b/re/re-bindings.el index 9bd82ef..c26768b 100644 --- a/re/re-bindings.el +++ b/re/re-bindings.el @@ -69,18 +69,19 @@ (keymap-global-set "C-" #'enlarge-window) (keymap-global-set "C-" #'shrink-window-horizontally) (keymap-global-set "C-" #'enlarge-window-horizontally) - +(keymap-set help-map "d" #'eldoc-doc-buffer) ; open eldoc buffer when it's getting spammed + ;; Mouse (keymap-global-unset "M-") (keymap-global-unset "M-") (keymap-global-unset "M-") (keymap-global-unset "M-") (keymap-global-unset "M-") - + ;; Late files and Bookmarks (keymap-global-set "C-c r" #'recentf-open-files) (keymap-global-set "C-x r B" #'bookmark-jump-other-window) - + ;; Draftweilding (keymap-global-set "C-x v C" #'re/vc-clone) (keymap-global-set "C-x v b b" #'re/vc-show-branches)