Compare commits

..

5 Commits

Author SHA1 Message Date
Jeremy Dormitzer
b541e076e0 Zsh changes 2021-10-05 11:15:03 -04:00
Jeremy Dormitzer
aa4ae9a75e Add command to run python from root 2021-10-05 11:15:03 -04:00
Jeremy Dormitzer
7cb66c68d5 Update to org-roam v2 2021-10-05 11:15:03 -04:00
Jeremy Dormitzer
f0ae80501f Add new aws profile 2021-10-05 11:15:03 -04:00
Jeremy Dormitzer
4a581f0b3f Add scala config 2021-10-05 11:14:56 -04:00
7 changed files with 41 additions and 12 deletions

View File

@ -15,6 +15,7 @@
(add-to-list 'aws-profiles "personal")
(add-to-list 'aws-profiles "lola-cde")
(add-to-list 'aws-profiles "lola-gbt")
(defun aws-switch-profile (profile)
(interactive (list (completing-read "Profile: " aws-profiles)))

View File

@ -117,21 +117,24 @@
;; org-roam provides backlinks between org documents
(use-package org-roam
:hook (org-mode . org-roam-mode)
:hook ((org-mode . org-roam-db-autosync-mode))
:custom
(org-roam-directory "~/org")
:bind (:map org-roam-mode-map
(("C-c n l" . org-roam)
("C-c n f" . org-roam-find-file)
("C-c n g" . org-roam-graph))
:map org-mode-map
(("C-c n i" . org-roam-insert))
(("C-c n I" . org-roam-insert-immediate)))
(org-roam-list-files-commands '(rg find fd fdfind))
:init
(setq org-roam-v2-ack t)
(defvar org-roam-commands-map (make-sparse-keymap))
(general-def org-roam-commands-map
"l" #'org-roam-buffer-toggle
"f" #'org-roam-node-find
"i" #'org-roam-node-insert
"I" #'org-roam-node-insert-immediate)
(with-eval-after-load 'org
(general-def org-mode-map "C-c n" org-roam-commands-map)
(which-key-declare-prefixes-for-mode 'org-mode "C-c n" "org-roam"))
:general
(leader-map "of" #'org-roam-find-file)
(leader-map "of" #'org-roam-node-find)
:config
(general-def org-roam-mode-map "C-c n" '(nil :which-key "org-roam"))
(general-def org-mode-map "C-c n" '(nil :which-key "org-roam"))
(general-def 'normal org-roam-backlinks-mode-map
"RET" #'org-open-at-point
"q" #'bury-buffer))

View File

@ -32,6 +32,17 @@
default-directory)))
(add-to-list 'flycheck-disabled-checkers 'python-flake8))
;; Run a python repl at the project root
(defun projectile-run-python ()
(interactive)
(let ((default-directory (projectile-project-root)))
(call-interactively #'run-python)))
(with-eval-after-load 'projectile
(general-def projectile-command-map
"s p" #'projectile-run-python
"x p" #'projectile-run-python))
;; pyvenv to track virtual environments
(use-package pyvenv
:defer 3

View File

@ -0,0 +1,11 @@
;; -*- lexical-binding: t; -*-
(use-package lsp-metals
:hook (scala-mode . lsp)
:custom
;; Metals claims to support range formatting by default but it supports range
;; formatting of multiline strings only. You might want to disable it so that
;; emacs can use indentation provided by scala-mode.
(lsp-metals-server-args '("-J-Dmetals.allow-multiline-string-formatting=off")))
(provide 'init-scala)

View File

@ -90,6 +90,7 @@
(require 'init-python)
(require 'init-clojure)
(require 'init-lisp)
(require 'init-scala)
(require 'init-js)
(require 'init-web)
(require 'init-xml)

View File

@ -1,2 +1,4 @@
ulimit -n 10240
export PATH="$PATH:/Users/jdormit/.local/bin"
eval "$(pyenv init --path)"
export SYSTEM_VERSION_COMPAT=1

View File

@ -1,5 +1,5 @@
typeset -U path
path=(~/bin ~/.local/bin ~/.gem/ruby/2.6.0/bin ~/go/bin /opt/local/bin ~/.cargo/bin $path)
path=(~/bin ~/.local/bin ~/.gem/ruby/2.6.0/bin ~/go/bin /opt/local/bin ~/.cargo/bin /usr/local/opt/make/libexec/gnubin $path)
export LEDGER_FILE="$HOME/journal.ledger"