Emacs: Activate lsp-mode for python.

This commit is contained in:
tastytea 2020-12-01 21:00:37 +01:00
parent 917b2fa74b
commit cca223bd40
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
;;; lsp.el --- Language Server Protocol. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-12-01T19:40:27+0100>
;; Time-stamp: <2020-12-01T20:58:52+0100>
;;; Commentary:
@ -42,6 +42,7 @@
:bind ("C-c C-f" . lsp-execute-code-action)
:hook ((c++-mode . lsp)
(c-mode . lsp)
(python-mode . lsp)
;; ↓ See <https://github.com/emacs-lsp/lsp-mode/issues/1736>. ↓
(lsp-managed-mode
. (lambda () (setq-local company-backends '(company-capf))))