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