Compare commits
5 Commits
db6848c11c
...
b541e076e0
Author | SHA1 | Date | |
---|---|---|---|
|
b541e076e0 | ||
|
aa4ae9a75e | ||
|
7cb66c68d5 | ||
|
f0ae80501f | ||
|
4a581f0b3f |
@ -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)))
|
||||
|
@ -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))
|
||||
|
@ -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
|
||||
|
11
emacs/.emacs.d/config/init-scala.el
Normal file
11
emacs/.emacs.d/config/init-scala.el
Normal 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)
|
@ -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)
|
||||
|
@ -1,2 +1,4 @@
|
||||
ulimit -n 10240
|
||||
export PATH="$PATH:/Users/jdormit/.local/bin"
|
||||
eval "$(pyenv init --path)"
|
||||
export SYSTEM_VERSION_COMPAT=1
|
||||
|
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user