summaryrefslogtreecommitdiffhomepage
path: root/custom
diff options
context:
space:
mode:
Diffstat (limited to 'custom')
-rw-r--r--custom/jao-custom-programming.el16
1 files changed, 3 insertions, 13 deletions
diff --git a/custom/jao-custom-programming.el b/custom/jao-custom-programming.el
index f60dbc9..4ea4029 100644
--- a/custom/jao-custom-programming.el
+++ b/custom/jao-custom-programming.el
@@ -11,19 +11,6 @@
eldoc-display-functions '(eldoc-display-in-echo-area))
:config (global-eldoc-mode 1))
-(defun jao-eldoc-toggle ()
- "Toggle eldoc's documentation buffer."
- (interactive)
- (let ((buffer (eldoc-doc-buffer)))
- (if-let* ((w (and buffer (get-buffer-window buffer))))
- (delete-window w)
- (eldoc-doc-buffer t))))
-
-(add-to-list 'display-buffer-alist
- '("\\*eldoc\\( .*\\)?\\*"
- (display-buffer-reuse-window)
- (dedicated . t)))
-
;;;; automatic modes
(add-to-list 'auto-mode-alist '("\\.mix\\'" . hexl-mode))
(add-to-list 'auto-mode-alist '("\\.m4\\'" . m4-mode))
@@ -362,6 +349,9 @@
("w" "Workspace tests" jao-rust-test-workspace)
("d" "Doc tests" jao-rust-test-doctests)
("r" "Retest last" jao-rust-retest)]
+ ["eldoc"
+ ("-" "Clear popups" jao-clear-below-eldoc)
+ ("." "Toggle eldoc buffer" jao-eldoc-toggle)]
["utilities"
("F" "Open flymake diagnostics" flymake-show-project-diagnostics)
("e" "Consult eglot symbolss" consult-eglot-symbols)