Improve Python environment

Amolith created

Change summary

dot_doom.d/config.el   | 3 +++
dot_doom.d/init.el     | 2 +-
dot_doom.d/packages.el | 2 ++
3 files changed, 6 insertions(+), 1 deletion(-)

Detailed changes

dot_doom.d/config.el 🔗

@@ -181,3 +181,6 @@
 ;; Look for various executables
 (amo/append-to-path "/usr/local/bin")
 (amo/append-to-path "~/.local/bin")
+
+;; Python settings
+(add-hook 'python-mode-hook 'auto-virtualenv-set-virtualenv)

dot_doom.d/init.el 🔗

@@ -153,7 +153,7 @@
        ;;php               ; perl's insecure younger brother
        ;;plantuml          ; diagrams for confusing people more
        ;;purescript        ; javascript, but functional
-       python            ; beautiful is better than ugly
+       (python +lsp)            ; beautiful is better than ugly
        ;;qt                ; the 'cutest' gui framework ever
        ;;racket            ; a DSL for DSLs
        ;;raku              ; the artist formerly known as perl6

dot_doom.d/packages.el 🔗

@@ -15,12 +15,14 @@
 (package! ox-hugo)
 (package! flyspell)
 (package! markdown-mode)
+(package! auto-virtualenv)
 
 ;; To install a package directly from a remote git repo, you must specify a
 ;; `:recipe'. You'll find documentation on what `:recipe' accepts here:
 ;; https://github.com/raxod502/straight.el#the-recipe-format
 ;(package! another-package
 ;  :recipe (:host github :repo "username/repo"))
+
 (package! chordpro-mode
   :recipe (:host github :repo "sciurius/chordpro-mode"))