Add auto-virtualenv to automatically activate python venv
This commit is contained in:
parent
54653dbe02
commit
7f82df2149
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
/music-normalize/venv/
|
/music-normalize/venv/
|
||||||
/music-normalize/*.log
|
/music-normalize/*.log
|
||||||
/easyffmpeg/venv/
|
/easyffmpeg/venv/
|
||||||
|
/venv/
|
||||||
|
@ -91,3 +91,11 @@
|
|||||||
|
|
||||||
;; Disable formatter for php
|
;; Disable formatter for php
|
||||||
(setq-hook! 'php-mode-hook +format-with :none)
|
(setq-hook! 'php-mode-hook +format-with :none)
|
||||||
|
|
||||||
|
; auto-virtualenv package configuration
|
||||||
|
(use-package! auto-virtualenv
|
||||||
|
:init
|
||||||
|
:config
|
||||||
|
(add-hook! 'python-mode-hook 'auto-virtualenv-set-virtualenv)
|
||||||
|
(add-hook! 'projectile-after-switch-project-hook 'auto-virtualenv-set-virtualenv) ;; If using projectile
|
||||||
|
)
|
||||||
|
@ -48,3 +48,6 @@
|
|||||||
;(unpin! pinned-package another-pinned-package)
|
;(unpin! pinned-package another-pinned-package)
|
||||||
;; ...Or *all* packages (NOT RECOMMENDED; will likely break things)
|
;; ...Or *all* packages (NOT RECOMMENDED; will likely break things)
|
||||||
;(unpin! t)
|
;(unpin! t)
|
||||||
|
|
||||||
|
;; auto-virtualenv package install
|
||||||
|
(package! auto-virtualenv)
|
||||||
|
Loading…
Reference in New Issue
Block a user