From 5e81df72fdad313130f6f0f60a14ffdb66e60c62 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 22 Apr 2020 16:50:34 -0400 Subject: [PATCH] Default to using the pipx-installed pyls --- emacs/init.org | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/emacs/init.org b/emacs/init.org index 89ab9ac..082db48 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -2853,6 +2853,9 @@ Elpy is a python IDE package: Alternatively, use the LSP python client: #+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) (general-def 'normal python-mode-map "C-c C-d" #'lsp-describe-thing-at-point) #+END_SRC @@ -3795,8 +3798,9 @@ Support sending rich-text emails via Markdown: (convert-message-to-markdown)) (message-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) + (with-eval-after-load 'message + (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