summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2026-01-13 14:50:08 +0000
committerjao <jao@gnu.org>2026-01-13 14:52:42 +0000
commitb1ccbc0895c42151e768a263e3e3bf2ec16bbbe7 (patch)
treee9186579f72435f63d9bffe7deebd0873c8e50b1
parentfdaea792a650a72cf48d09ec1360fe1e9e2d1356 (diff)
downloadelibs-b1ccbc0895c42151e768a263e3e3bf2ec16bbbe7.tar.gz
elibs-b1ccbc0895c42151e768a263e3e3bf2ec16bbbe7.tar.bz2
eldoc: dedicated window
-rw-r--r--custom/jao-custom-programming.el5
-rw-r--r--init.el4
2 files changed, 7 insertions, 2 deletions
diff --git a/custom/jao-custom-programming.el b/custom/jao-custom-programming.el
index 672f70f..5437bba 100644
--- a/custom/jao-custom-programming.el
+++ b/custom/jao-custom-programming.el
@@ -19,7 +19,10 @@
(delete-window w)
(eldoc-doc-buffer t))))
-(jao-define-attached-buffer "\\*eldoc\\( .*\\)?\\*" 12)
+(add-to-list 'display-buffer-alist
+ '("\\*eldoc\\( .*\\)?\\*"
+ (display-buffer-reuse-window)
+ (dedicated . t)))
;;;; automatic modes
(add-to-list 'auto-mode-alist '("\\.mix\\'" . hexl-mode))
diff --git a/init.el b/init.el
index 1140378..ad0c535 100644
--- a/init.el
+++ b/init.el
@@ -1024,11 +1024,13 @@
display-buffer-avoid-small-windows 20)
(setq switch-to-buffer-preserve-window-point nil
- switch-to-buffer-obey-display-actions t
+ switch-to-buffer-obey-display-actions nil
+ switch-to-buffer-in-dedicated-window 'pop
switch-to-prev-buffer-skip 'this) ;; don't switch to a
;; buffer already visible in
;; this frame
+
(global-set-key (kbd "C-x _") #'delete-other-windows-vertically)
;;;; first window