diff --git a/.emacs b/.emacs index 89b08da..4ce21e6 100644 --- a/.emacs +++ b/.emacs @@ -258,8 +258,8 @@ (defun atu/get-dotvenv () "Gets .venv from project root if any" (when-let* ((root-dir (projectile-project-root)) - (venv (concat (file-name-as-directory root-dir) ".venv")) - (venv-exists (file-exists-p venv)) + (venv-file (concat (file-name-as-directory root-dir) ".venv")) + (venv-exists (file-exists-p venv-file)) (venv-name (with-temp-buffer (insert-file-contents venv-file) (nth 0 (split-string (buffer-string)))))) @@ -349,6 +349,7 @@ (add-hook 'before-save-hook 'py-isort-before-save))) ) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; C/C++ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;