change my-view-python
This commit is contained in:
@@ -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 ()
|
||||
|
||||
Reference in New Issue
Block a user