From 504c2b1bfa92d452c71374b660dc9a8892a9549a Mon Sep 17 00:00:00 2001 From: Daniel Weschke Date: Mon, 6 May 2024 21:13:28 +0200 Subject: [PATCH] change my-view-python --- lisp/my/my-view.el | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/lisp/my/my-view.el b/lisp/my/my-view.el index 15b76721..3137f5e5 100644 --- a/lisp/my/my-view.el +++ b/lisp/my/my-view.el @@ -21,18 +21,34 @@ Four windows: " (interactive) (require 'python) + (setq eldoc-echo-area-prefer-doc-buffer t) ;; first make visiting file full and run eglot (delete-other-windows) (eglot-ensure) - ;; split horizontal 0.6 - 0.4 - (split-window-horizontally (truncate (* 0.6 (window-body-width)))) + ;; split horizontal 0.6/0.4 + ;; (split-window-horizontally (truncate (* 0.6 (window-body-width)))) + ;; (other-window 1) + ;; (switch-to-buffer (concat "*eldoc*")) + ;; (other-window 1) + (eldoc-doc-buffer 1) + (window-resize nil (truncate (* 0.2 (window-body-width))) t nil nil) + + ;; split vertical xref and python shell (other-window 1) - (switch-to-buffer (eldoc-doc-buffer)) - (other-window -1) - - ) + (split-window-vertically) + (other-window 1) + (split-window-vertically) + (switch-to-buffer (concat "*xref*")) + (other-window 1) + (switch-to-buffer (concat "*" python-shell-buffer-name "*")) + (run-python) + + ;; size + (other-window 1) + (balance-windows) + (window-resize nil (truncate (* 0.2 (window-body-width))) t nil nil)) ;; python old using anaconda ;; (defun my-view-python ()