Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .emacs.d/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
(require '99_yaml)
(require '99_docker)
(require '99_c_cpp)
(require '99_python)

(setq custom-file (expand-file-name "emacs-custom.el" user-emacs-directory))
(load-file (expand-file-name "emacs-custom.el" user-emacs-directory))
Expand Down
28 changes: 28 additions & 0 deletions .emacs.d/modes/99_python.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
;;; 99_python.el --- <Summary> -*- lexical-binding: t; -*-

;;; Commentary:

;;; Code:

;;; Emacsをvenv内から立ち上げる方針が楽

;; ruff serverは微妙
;; textDocument/definitionがサポートされておらず,ruff-lspを起動するよう上書きをしてもエラーが出た
;; (with-eval-after-load 'lsp-ruff
;; (setq lsp-ruff-server-command '("ruff-lsp")))
;; pyrightを入れるのが楽
(use-package lsp-mode
:hook (python-mode . lsp)
:config
)

(use-package lsp-pyright
:if (executable-find "pyright")
:hook (python-mode . (lambda ()
(require 'lsp-pyright)
(lsp))))

;; docker連携はTODO

(provide '99_python)
;;; 99_python.el ends here
Loading