Pare poprawek
This commit is contained in:
parent
f495ac8e1c
commit
dce296f4df
116
init.el
116
init.el
|
@ -622,6 +622,9 @@ Missing packages are automatically installed."
|
||||||
"l n" 'display-line-numbers-mode
|
"l n" 'display-line-numbers-mode
|
||||||
"j s" 'jupyter-run-server-repl
|
"j s" 'jupyter-run-server-repl
|
||||||
"j a" 'jupyter-repl-associate-buffer
|
"j a" 'jupyter-repl-associate-buffer
|
||||||
|
"p s" 'run-python
|
||||||
|
"p b" 'python-shell-send-buffer
|
||||||
|
"p r" 'python-shell-send-region
|
||||||
"s r" 'query-replace
|
"s r" 'query-replace
|
||||||
"e l" 'flycheck-list-errors
|
"e l" 'flycheck-list-errors
|
||||||
"n n" 'narrow-to-region
|
"n n" 'narrow-to-region
|
||||||
|
@ -646,6 +649,7 @@ Missing packages are automatically installed."
|
||||||
"<SPC> s" "Search&Replace"
|
"<SPC> s" "Search&Replace"
|
||||||
"<SPC> o" "Org"
|
"<SPC> o" "Org"
|
||||||
"<SPC> m" "Macro"
|
"<SPC> m" "Macro"
|
||||||
|
"<SPC> p" "Python"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -820,93 +824,55 @@ Missing packages are automatically installed."
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;; (defun build123d ()
|
(defun build123d ()
|
||||||
;; "Automatyzacja workflow: uruchomienie Jupyter Lab, OCP VSCode i konfiguracja REPL."
|
|
||||||
;; (interactive)
|
|
||||||
;; ;; Przejdź do pliku simrig.py
|
|
||||||
;; (let ((file-path (if (eq system-type 'windows-nt)
|
|
||||||
;; ;; "C:/Users/paluc/OneDrive/Dokumenty/simrig2/simrig.py"
|
|
||||||
;; ;; "C:/Users/paluc/OneDrive/Dokumenty/frezarka/frezarka.py"
|
|
||||||
;; "C:/Users/paluc/OneDrive/Dokumenty/Box_Arduino_Adrian/box.py"
|
|
||||||
;; ;; "C:/Users/paluc/OneDrive/Dokumenty/uchwytBaterii/uchwyt.py"
|
|
||||||
;; ;; "/home/pali112/Dokumenty/simrig2/simrig.py"
|
|
||||||
;; ;; "/home/pali112/Dokumenty/Uchwyt_Myszki/uchwyt.py"
|
|
||||||
;; ;; "/home/pali112/Dokumenty/Box_Adriana/box.py"
|
|
||||||
;; ;; "/home/pali112/Dokumenty/Box_Adriana_Arduino/box.py"
|
|
||||||
;; "/home/pali112/Dokumenty/ipadFreecad/ipad.py"
|
|
||||||
;; ;; "/home/pali112/Dokumenty/uchwyt_baterii/uchwyt.py"
|
|
||||||
|
|
||||||
;; )))
|
|
||||||
|
|
||||||
|
|
||||||
;; (find-file file-path)
|
|
||||||
;; ;; Otwórz eshell 1 i uruchom Jupyter Lab
|
|
||||||
;; (let ((eshell-buffer-name "*eshell-1*"))
|
|
||||||
;; (eshell 1))
|
|
||||||
;; (sleep-for 1) ;; Czekaj na aktywację pipenv shell
|
|
||||||
;; (evil-insert-state)
|
|
||||||
;; (insert "jupyter lab")
|
|
||||||
;; (eshell-send-input)
|
|
||||||
;; (sleep-for 1) ;; Czekaj na aktywację pipenv shell
|
|
||||||
;; ;; Przejdź do eshell 2 i uruchom Python -m ocp_vscode
|
|
||||||
;; (let ((eshell-buffer-name "*eshell-2*"))
|
|
||||||
;; (eshell))
|
|
||||||
;; (sleep-for 1) ;; Czekaj na aktywację pipenv shell
|
|
||||||
;; (evil-insert-state)
|
|
||||||
;; (insert "python -m ocp_vscode")
|
|
||||||
;; (eshell-send-input)
|
|
||||||
;; (sleep-for 1) ;; Czekaj na aktywację pipenv shell
|
|
||||||
;; ;; Powróć do pliku simrig.py
|
|
||||||
;; (find-file file-path)
|
|
||||||
;; ;; Uruchom jupyter-run-server-repl i pozwól użytkownikowi potwierdzić wartości interaktywnie
|
|
||||||
;; (call-interactively 'jupyter-run-server-repl)
|
|
||||||
;; (sleep-for 1) ;; Czekaj na aktywację pipenv shell
|
|
||||||
;; (find-file file-path)
|
|
||||||
;; (call-interactively 'jupyter-repl-associate-buffer)
|
|
||||||
;; ;; Otwórz stronę w przeglądarce
|
|
||||||
;; (browse-url "http://localhost:3939/viewer")))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(defun build123d ()
|
|
||||||
"Automatyzacja workflow: uruchomienie Jupyter Lab, OCP VSCode i konfiguracja REPL."
|
"Automatyzacja workflow: uruchomienie Jupyter Lab, OCP VSCode i konfiguracja REPL."
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((path "/home/pali112/Dokumenty/ipadFreecad/ipad.py")) ; <-- wpisz tu dowolną ścieżkę
|
;; Przejdź do pliku simrig.py
|
||||||
|
(let ((file-path (if (eq system-type 'windows-nt)
|
||||||
|
;; "C:/Users/paluc/OneDrive/Dokumenty/simrig2/simrig.py"
|
||||||
|
;; "C:/Users/paluc/OneDrive/Dokumenty/frezarka/frezarka.py"
|
||||||
|
"C:/Users/paluc/OneDrive/Dokumenty/Box_Arduino_Adrian/box.py"
|
||||||
|
;; "C:/Users/paluc/OneDrive/Dokumenty/uchwytBaterii/uchwyt.py"
|
||||||
|
;; "/home/pali112/Dokumenty/simrig2/simrig.py"
|
||||||
|
;; "/home/pali112/Dokumenty/Uchwyt_Myszki/uchwyt.py"
|
||||||
|
;; "/home/pali112/Dokumenty/Box_Adriana/box.py"
|
||||||
|
;; "/home/pali112/Dokumenty/Box_Arduino_Adrian/box.py"
|
||||||
|
"/home/pali112/Dokumenty/buildtraing/bracket2.py"
|
||||||
|
;; "/home/pali112/Dokumenty/ipadFreecad/ipad.py"
|
||||||
|
;; "/home/pali112/Dokumenty/uchwyt_baterii/uchwyt.py"
|
||||||
|
|
||||||
;; Otwórz plik
|
)))
|
||||||
(find-file path)
|
|
||||||
|
|
||||||
;; Eshell 1: Jupyter Lab
|
|
||||||
|
(find-file file-path)
|
||||||
|
;; Otwórz eshell 1 i uruchom Jupyter Lab
|
||||||
(let ((eshell-buffer-name "*eshell-1*"))
|
(let ((eshell-buffer-name "*eshell-1*"))
|
||||||
(eshell 1)
|
(eshell 1))
|
||||||
(sleep-for 1)
|
(sleep-for 1) ;; Czekaj na aktywację pipenv shell
|
||||||
(evil-insert-state)
|
(evil-insert-state)
|
||||||
(insert "jupyter lab")
|
(insert "jupyter lab")
|
||||||
(eshell-send-input))
|
(eshell-send-input)
|
||||||
|
(sleep-for 1) ;; Czekaj na aktywację pipenv shell
|
||||||
;; Eshell 2: python -m ocp_vscode
|
;; Przejdź do eshell 2 i uruchom Python -m ocp_vscode
|
||||||
(let ((eshell-buffer-name "*eshell-2*"))
|
(let ((eshell-buffer-name "*eshell-2*"))
|
||||||
(eshell)
|
(eshell))
|
||||||
(sleep-for 1)
|
(sleep-for 1) ;; Czekaj na aktywację pipenv shell
|
||||||
(evil-insert-state)
|
(evil-insert-state)
|
||||||
(insert "python -m ocp_vscode")
|
(insert "python -m ocp_vscode")
|
||||||
(eshell-send-input))
|
(eshell-send-input)
|
||||||
|
(sleep-for 1) ;; Czekaj na aktywację pipenv shell
|
||||||
;; REPL
|
;; Powróć do pliku simrig.py
|
||||||
(sleep-for 1)
|
(find-file file-path)
|
||||||
(find-file path)
|
;; Uruchom jupyter-run-server-repl i pozwól użytkownikowi potwierdzić wartości interaktywnie
|
||||||
(call-interactively 'jupyter-run-server-repl)
|
(call-interactively 'jupyter-run-server-repl)
|
||||||
(sleep-for 1)
|
(sleep-for 1) ;; Czekaj na aktywację pipenv shell
|
||||||
|
(find-file file-path)
|
||||||
(call-interactively 'jupyter-repl-associate-buffer)
|
(call-interactively 'jupyter-repl-associate-buffer)
|
||||||
|
;; Otwórz stronę w przeglądarce
|
||||||
;; Przeglądarka
|
|
||||||
(browse-url "http://localhost:3939/viewer")))
|
(browse-url "http://localhost:3939/viewer")))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(defun remote-nadpisz ()
|
(defun remote-nadpisz ()
|
||||||
"Fetch changes from remote, reset local branch, and clean untracked files."
|
"Fetch changes from remote, reset local branch, and clean untracked files."
|
||||||
(interactive)
|
(interactive)
|
||||||
|
|
Loading…
Reference in New Issue