Default to using the pipx-installed pyls
This commit is contained in:
parent
71f995464e
commit
5e81df72fd
@ -2853,6 +2853,9 @@ Elpy is a python IDE package:
|
|||||||
|
|
||||||
Alternatively, use the LSP python client:
|
Alternatively, use the LSP python client:
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(with-eval-after-load 'lsp-pyls
|
||||||
|
(when (file-exists-p (expand-file-name "~/.local/bin/pyls"))
|
||||||
|
(setq lsp-pyls-server-command (list (expand-file-name "~/.local/bin/pyls")))))
|
||||||
(add-hook 'python-mode-hook #'lsp)
|
(add-hook 'python-mode-hook #'lsp)
|
||||||
(general-def 'normal python-mode-map "C-c C-d" #'lsp-describe-thing-at-point)
|
(general-def 'normal python-mode-map "C-c C-d" #'lsp-describe-thing-at-point)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
@ -3795,8 +3798,9 @@ Support sending rich-text emails via Markdown:
|
|||||||
(convert-message-to-markdown))
|
(convert-message-to-markdown))
|
||||||
(message-send-and-exit))
|
(message-send-and-exit))
|
||||||
|
|
||||||
(define-key message-mode-map (kbd "C-c C-s") #'message-md-send)
|
(with-eval-after-load 'message
|
||||||
(define-key message-mode-map (kbd "C-c C-c") #'message-md-send-and-exit)
|
(define-key message-mode-map (kbd "C-c C-s") #'message-md-send)
|
||||||
|
(define-key message-mode-map (kbd "C-c C-c") #'message-md-send-and-exit))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user