diff options
| author | jao <jao@gnu.org> | 2026-01-13 14:50:08 +0000 |
|---|---|---|
| committer | jao <jao@gnu.org> | 2026-01-13 14:52:42 +0000 |
| commit | b1ccbc0895c42151e768a263e3e3bf2ec16bbbe7 (patch) | |
| tree | e9186579f72435f63d9bffe7deebd0873c8e50b1 | |
| parent | fdaea792a650a72cf48d09ec1360fe1e9e2d1356 (diff) | |
| download | elibs-b1ccbc0895c42151e768a263e3e3bf2ec16bbbe7.tar.gz elibs-b1ccbc0895c42151e768a263e3e3bf2ec16bbbe7.tar.bz2 | |
eldoc: dedicated window
| -rw-r--r-- | custom/jao-custom-programming.el | 5 | ||||
| -rw-r--r-- | init.el | 4 |
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)) @@ -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 |
