Compare commits

...

2 Commits

Author SHA1 Message Date
Jeremy Dormitzer
7ddd20bf72 Fix init-elisp.el 2021-04-07 16:55:24 -04:00
Jeremy Dormitzer
3d10c8f159 Set up pipenv 2021-04-07 16:55:14 -04:00
5 changed files with 17 additions and 5 deletions

View File

@ -1,5 +1,9 @@
;; -*- lexical-binding: t; -*-
(use-package elisp-mode (use-package elisp-mode
:straight (:type built-in) :straight (:type built-in)
:general :general
(emacs-lisp-mode-map "C-c C-c" #'eval-defun (emacs-lisp-mode-map "C-c C-c" #'eval-defun
"C-c C-k" #'eval-buffer)) "C-c C-k" #'eval-buffer))
(provide 'init-elisp)

View File

@ -150,7 +150,7 @@
:cwd "~/lola/core-services/lola_server" :cwd "~/lola/core-services/lola_server"
:stop-signal 'int :stop-signal 'int
:truncate-output t :truncate-output t
:init-async (python-service-setup "~/.pyenv/versions/core-services" :init-async (python-service-setup "~/lola/core-services/.venv"
"~/lola/core-services/lola_server/.env")) "~/lola/core-services/lola_server/.env"))
(prodigy-define-service (prodigy-define-service
@ -161,7 +161,7 @@
:cwd "~/lola/core-services/lola_server" :cwd "~/lola/core-services/lola_server"
:stop-signal 'int :stop-signal 'int
:truncate-output t :truncate-output t
:init-async (python-service-setup "~/.pyenv/versions/core-services" :init-async (python-service-setup "~/lola/core-services/.venv"
"~/lola/core-services/lola_server/.env")) "~/lola/core-services/lola_server/.env"))
(prodigy-define-service (prodigy-define-service
@ -176,7 +176,7 @@
:inhibit-process-filter t :inhibit-process-filter t
:stop-signal 'int :stop-signal 'int
:truncate-output t :truncate-output t
:init-async (python-service-setup "~/.pyenv/versions/core-services" :init-async (python-service-setup "~/lola/core-services/.venv"
"~/lola/core-services/travel_service/.env")) "~/lola/core-services/travel_service/.env"))
(prodigy-define-service (prodigy-define-service
@ -195,7 +195,7 @@
:cwd "~/lola/core-services/travel_service" :cwd "~/lola/core-services/travel_service"
:stop-signal 'int :stop-signal 'int
:truncate-output t :truncate-output t
:init-async (python-service-setup "~/.pyenv/versions/core-services" :init-async (python-service-setup "~/lola/core-services/.venv"
"~/lola/core-services/travel_service/.env")) "~/lola/core-services/travel_service/.env"))
(prodigy-define-service (prodigy-define-service

View File

@ -65,6 +65,11 @@
:custom :custom
(pyenv-show-active-python-in-modeline nil)) (pyenv-show-active-python-in-modeline nil))
;; A pipenv integration
(use-package pipenv
:defer 2
:hook (python-mode . pipenv-mode))
;; LSP using Microsoft's pyright language server ;; LSP using Microsoft's pyright language server
(use-package lsp-pyright (use-package lsp-pyright
:hook (python-mode . (lambda () :hook (python-mode . (lambda ()

View File

@ -19,3 +19,6 @@ if [ -d /Applications/Postgres.app ];
then then
path=(/Applications/Postgres.app/Contents/Versions/latest/bin $path) path=(/Applications/Postgres.app/Contents/Versions/latest/bin $path)
fi fi
export PIPENV_MAX_DEPTH=20
export PIPENV_VENV_IN_PROJECT=yes

View File

@ -66,7 +66,7 @@ ZSH_THEME="typewritten"
# Custom plugins may be added to $ZSH_CUSTOM/plugins/ # Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse) # Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup. # Add wisely, as too many plugins slow down shell startup.
plugins=(git direnv pyenv npm nvm) plugins=(git direnv pyenv pipenv npm nvm)
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh