add edit-indirect

This commit is contained in:
2024-06-14 11:39:58 +02:00
parent 504c2b1bfa
commit 59aaf6fc14
4 changed files with 483 additions and 25 deletions

View File

@@ -22,33 +22,42 @@ Four windows:
(interactive)
(require 'python)
(setq eldoc-echo-area-prefer-doc-buffer t)
(let ((eldoc-echo-area-prefer-doc-buffer t)
(eglot-sync-connect t))
;; first make visiting file full and run eglot
(delete-other-windows)
(eglot-ensure)
;; 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))))
;; (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 horizontal 0.6/0.4
;; (split-window-horizontally (truncate (* 0.6 (window-body-width))))
(split-window-horizontally)
(other-window 1)
;; (switch-to-buffer (concat "*eldoc*"))
(when (get-buffer (eldoc-doc-buffer))
(switch-to-buffer (eldoc-doc-buffer)))
;; split vertical xref and python shell
(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)
;; ;; (other-window 1)
;; ;; (eldoc-doc-buffer 1)
;; ;; (window-resize nil (truncate (* 0.2 (window-body-width))) t nil nil)
;; size
(other-window 1)
(balance-windows)
(window-resize nil (truncate (* 0.2 (window-body-width))) t nil nil))
;; split vertical xref and python shell
;; (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 ()