Compare commits

...

6 Commits

Author SHA1 Message Date
Jeremy Dormitzer
ffc5fe6560 Use completing-read for prodigy completion 2021-02-26 10:29:32 -05:00
Jeremy Dormitzer
862785fdad Set evil-respect-visual-line-mode 2021-02-26 10:29:23 -05:00
Jeremy Dormitzer
af6c06b2cf Defer loading embark-consult 2021-02-26 10:29:10 -05:00
Jeremy Dormitzer
169ce09cd7 Defer loading ediff 2021-02-26 10:29:01 -05:00
Jeremy Dormitzer
1702fe4c41 Use better pyenv integration 2021-02-26 10:28:50 -05:00
Jeremy Dormitzer
1759224eaa Set up nvm.el 2021-02-26 10:28:33 -05:00
8 changed files with 38 additions and 6 deletions

View File

@ -21,4 +21,8 @@ Repeated invocations toggle between the two most recently open buffers."
"bm" #'kill-other-buffers
"br" #'rename-buffer)
;; A library that provides a hook called on switching buffers
(use-package switch-buffer-functions
:demand t)
(provide 'init-buffers)

View File

@ -32,6 +32,7 @@
(normal shell-mode-map "q" #'bury-buffer))
(use-package ediff
:defer t
:straight (:type built-in)
:config
(setq ediff-window-setup-function #'ediff-setup-windows-plain))

View File

@ -84,9 +84,7 @@
(flycheck-command-map "!" #'consult-flycheck))
(use-package embark-consult
:init
(with-eval-after-load 'embark
(require 'embark-consult)))
:defer 1)
;; Make grep-like embark collect buffers editable
(use-package wgrep

View File

@ -3,7 +3,8 @@
;; Set up Vim keybindings with evil-mode
(use-package evil
:init
(setq evil-want-keybinding nil)
(setq evil-want-keybinding nil
evil-respect-visual-line-mode t)
:config
(evil-mode 1)
:custom

View File

@ -0,0 +1,9 @@
;; -*- lexical-binding: t; -*-
;; node version manager
(use-package nvm
:commands (nvm-use
nvm-use-for
nvm-use-for-buffer))
(provide 'init-js)

View File

@ -6,6 +6,8 @@
:general
('normal prodigy-mode-map "SPC" leader-map)
('normal prodigy-view-mode-map "SPC" leader-map)
:custom
(prodigy-completion-system 'default)
:config
(evil-collection-prodigy-setup)
;; Add ability to associate a file with service logs instead of a buffer

View File

@ -39,8 +39,24 @@
(pyvenv-tracking-mode))
;; pyenv to track Python version
(use-package pyenv-mode
:defer t)
(use-package pyenv
:straight (:host github :repo "aiguofer/pyenv.el")
:if (executable-find "pyenv")
:defer 3
:init
(setq pyenv-executable (executable-find "pyenv"))
:config
;; Patch version alias stuff I don't use to stop spamming messages
(defun pyenv--version-alias-file ()
"Get peynv version alias file path."
(when pyenv-use-alias
(pyenv--call-process "version-alias-file")))
(global-pyenv-mode)
(defun pyenv-switch-buffer-hook (prev curr)
(pyenv-use-corresponding))
(add-hook 'switch-buffer-functions #'pyenv-switch-buffer-hook)
:custom
(pyenv-show-active-python-in-modeline nil))
;; LSP using Microsoft's pyright language server
(use-package lsp-pyright

View File

@ -78,6 +78,7 @@
(require 'init-help)
(require 'init-python)
(require 'init-clojure)
(require 'init-js)
(require 'init-yaml)
(require 'init-terraform)
(require 'init-run-command)