From 7f82df214911171a94c863ee1a5841f99ac8dfd2 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Wed, 21 Jun 2023 20:45:54 +0200 Subject: [PATCH 1/2] Add auto-virtualenv to automatically activate python venv --- .gitignore | 1 + arch-config/.doom.d/config.el | 8 ++++++++ arch-config/.doom.d/packages.el | 3 +++ 3 files changed, 12 insertions(+) diff --git a/.gitignore b/.gitignore index af48dc0b..905d46bb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /music-normalize/venv/ /music-normalize/*.log /easyffmpeg/venv/ +/venv/ diff --git a/arch-config/.doom.d/config.el b/arch-config/.doom.d/config.el index f38fcb0c..a557df65 100644 --- a/arch-config/.doom.d/config.el +++ b/arch-config/.doom.d/config.el @@ -91,3 +91,11 @@ ;; Disable formatter for php (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 + ) diff --git a/arch-config/.doom.d/packages.el b/arch-config/.doom.d/packages.el index b80e9cce..364c451b 100644 --- a/arch-config/.doom.d/packages.el +++ b/arch-config/.doom.d/packages.el @@ -48,3 +48,6 @@ ;(unpin! pinned-package another-pinned-package) ;; ...Or *all* packages (NOT RECOMMENDED; will likely break things) ;(unpin! t) + +;; auto-virtualenv package install +(package! auto-virtualenv) From 1e45aa12dd7db60f17d8282cd9b938907f34bc19 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Wed, 21 Jun 2023 20:46:16 +0200 Subject: [PATCH 2/2] Change username --- arch-config/.doom.d/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch-config/.doom.d/config.el b/arch-config/.doom.d/config.el index a557df65..9dfe7d00 100644 --- a/arch-config/.doom.d/config.el +++ b/arch-config/.doom.d/config.el @@ -6,7 +6,7 @@ ;; Some functionality uses this to identify you, e.g. GPG configuration, email ;; clients, file templates and snippets. -(setq user-full-name "RealStickman" +(setq user-full-name "exu" user-mail-address "mrc@frm01.net") ;; Doom exposes five (optional) variables for controlling fonts in Doom. Here