Compare commits

..

7 Commits

Author SHA1 Message Date
Jeremy Dormitzer
0e2bfb07b3 Speed up exec-path-from-shell by opening a non-interactive shell 2021-02-24 16:52:34 -05:00
Jeremy Dormitzer
f886bfef05 Bind run-command-term-recompile 2021-02-24 16:52:07 -05:00
Jeremy Dormitzer
87dc8b8cac Add py-isort 2021-02-24 16:52:01 -05:00
Jeremy Dormitzer
7b8d603425 Add org capture templates 2021-02-24 16:51:53 -05:00
Jeremy Dormitzer
17bc1945e9 Add evil-multiedit 2021-02-24 16:51:25 -05:00
Jeremy Dormitzer
368caf9bae Add more consult functionality 2021-02-24 16:51:11 -05:00
Jeremy Dormitzer
918b9358df Add .zshenv 2021-02-24 16:50:58 -05:00
8 changed files with 61 additions and 1 deletions

View File

@ -63,9 +63,20 @@
;; Consult adds a bunch of completing-read based utilities
(use-package consult
:commands (consult-xref)
:init
(setq xref-show-xrefs-function #'consult-xref
xref-show-definitions-function #'consult-xref)
:custom
(consult-project-root-function #'projectile-project-root)
:general
([remap switch-to-buffer] #'consult-buffer)
([remap imenu] #'consult-imenu)
("C-c p" #'consult-yank))
(use-package consult-flycheck
:after flycheck
:general
(flycheck-command-map "!" #'consult-flycheck))
(provide 'init-completion)

View File

@ -79,4 +79,10 @@
:general
("C-c o" #'olivetti-mode))
;; Multiple cursors
(use-package evil-multiedit
:defer 2
:config
(evil-multiedit-default-keybinds))
(provide 'init-editing)

View File

@ -18,6 +18,12 @@
"|"
"DONE(d)"
"CANCELLED(c)")))
(org-capture-templates `(("l" "Lola task" entry
(file+headline ,(expand-file-name "~/org/todo.org") "Lola")
"* TODO %i%?")
("p" "Personal task" entry
(file+headline ,(expand-file-name "~/org/todo.org") "Personal")
"* TODO %i%?")))
(org-return-follows-link t)
(org-ellipsis "")
(org-src-fontify-natively t)

View File

@ -2,6 +2,7 @@
;; Project management
(use-package projectile
:commands (projectile-project-root)
:config
(projectile-mode 1)
(leader-def-key "p" '(projectile-command-map :which-key "projectile"))

View File

@ -53,4 +53,12 @@
:general
(python-mode-map "C-c C-d" #'lsp-describe-thing-at-point))
;; isort to sort Python imports
(use-package py-isort
:commands (py-isort-buffer py-isort-region)
:config
(setq py-isort-options '("-m=3"))
:general
(python-mode-map "C-c C-i" #'py-isort-buffer))
(provide 'init-python)

View File

@ -186,6 +186,7 @@
:general
(leader-map "\"" #'run-command)
(run-command-term-minor-mode-map [remap recompile] #'run-command-term-recompile)
(normal run-command-term-minor-mode-map "gr" #'run-command-term-recompile)
:custom
(run-command-run-method 'async-shell)
(run-command-recipes '(run-command-recipe-terraform

View File

@ -43,7 +43,8 @@
"PIPENV_VERBOSITY" "PIPENV_DONT_LOAD_ENV"
"PIPENV_MAX_DEPTH" "PYENV_ROOT" "KOPS_STATE_STORE"
"PLAID_CLIENT_ID" "PLAID_SECRET" "PLAID_ENVIRONMENT"))
(exec-path-from-shell-check-startup-files nil))
(exec-path-from-shell-check-startup-files nil)
(exec-path-from-shell-arguments '("-l")))
;; Don't use this file as the custom-file

26
zsh/.zshenv Normal file
View File

@ -0,0 +1,26 @@
if [ -d ~/lola ];
then
export LOLA_HOME=~/lola/lola-server
export MODELS_HOME=~/lola/models
export LOLA_TRAVEL_SERVICE_HOME=~/lola/lola-travel-service
fi
export LEDGER_FILE="$HOME/journal.ledger"
export PATH="$HOME/bin/":"$HOME/.local/bin":"$HOME/.gem/ruby/2.6.0/bin":"$HOME/.gem/ruby/2.5.0/bin":"$HOME/go/bin":"/opt/local/bin":"$PATH"
EDITOR="$(which emacsclient)"
export EDITOR
export PATH="$HOME/.cargo/bin:$PATH"
export NVM_DIR="$HOME/.nvm"
export WORKON_HOME="$HOME/.local/share/virtualenvs"
GPG_TTY=$(tty)
export GPG_TTY
if [ -d /Applications/Postgres.app ];
then
export PATH=/Applications/Postgres.app/Contents/Versions/latest/bin:"$PATH"
fi