Compare commits
6 Commits
87fb1cbfe8
...
ffc5fe6560
Author | SHA1 | Date | |
---|---|---|---|
|
ffc5fe6560 | ||
|
862785fdad | ||
|
af6c06b2cf | ||
|
169ce09cd7 | ||
|
1702fe4c41 | ||
|
1759224eaa |
@ -21,4 +21,8 @@ Repeated invocations toggle between the two most recently open buffers."
|
|||||||
"bm" #'kill-other-buffers
|
"bm" #'kill-other-buffers
|
||||||
"br" #'rename-buffer)
|
"br" #'rename-buffer)
|
||||||
|
|
||||||
|
;; A library that provides a hook called on switching buffers
|
||||||
|
(use-package switch-buffer-functions
|
||||||
|
:demand t)
|
||||||
|
|
||||||
(provide 'init-buffers)
|
(provide 'init-buffers)
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
(normal shell-mode-map "q" #'bury-buffer))
|
(normal shell-mode-map "q" #'bury-buffer))
|
||||||
|
|
||||||
(use-package ediff
|
(use-package ediff
|
||||||
|
:defer t
|
||||||
:straight (:type built-in)
|
:straight (:type built-in)
|
||||||
:config
|
:config
|
||||||
(setq ediff-window-setup-function #'ediff-setup-windows-plain))
|
(setq ediff-window-setup-function #'ediff-setup-windows-plain))
|
||||||
|
@ -84,9 +84,7 @@
|
|||||||
(flycheck-command-map "!" #'consult-flycheck))
|
(flycheck-command-map "!" #'consult-flycheck))
|
||||||
|
|
||||||
(use-package embark-consult
|
(use-package embark-consult
|
||||||
:init
|
:defer 1)
|
||||||
(with-eval-after-load 'embark
|
|
||||||
(require 'embark-consult)))
|
|
||||||
|
|
||||||
;; Make grep-like embark collect buffers editable
|
;; Make grep-like embark collect buffers editable
|
||||||
(use-package wgrep
|
(use-package wgrep
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
;; Set up Vim keybindings with evil-mode
|
;; Set up Vim keybindings with evil-mode
|
||||||
(use-package evil
|
(use-package evil
|
||||||
:init
|
:init
|
||||||
(setq evil-want-keybinding nil)
|
(setq evil-want-keybinding nil
|
||||||
|
evil-respect-visual-line-mode t)
|
||||||
:config
|
:config
|
||||||
(evil-mode 1)
|
(evil-mode 1)
|
||||||
:custom
|
:custom
|
||||||
|
9
emacs/.emacs.d/config/init-js.el
Normal file
9
emacs/.emacs.d/config/init-js.el
Normal 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)
|
@ -6,6 +6,8 @@
|
|||||||
:general
|
:general
|
||||||
('normal prodigy-mode-map "SPC" leader-map)
|
('normal prodigy-mode-map "SPC" leader-map)
|
||||||
('normal prodigy-view-mode-map "SPC" leader-map)
|
('normal prodigy-view-mode-map "SPC" leader-map)
|
||||||
|
:custom
|
||||||
|
(prodigy-completion-system 'default)
|
||||||
:config
|
:config
|
||||||
(evil-collection-prodigy-setup)
|
(evil-collection-prodigy-setup)
|
||||||
;; Add ability to associate a file with service logs instead of a buffer
|
;; Add ability to associate a file with service logs instead of a buffer
|
||||||
|
@ -39,8 +39,24 @@
|
|||||||
(pyvenv-tracking-mode))
|
(pyvenv-tracking-mode))
|
||||||
|
|
||||||
;; pyenv to track Python version
|
;; pyenv to track Python version
|
||||||
(use-package pyenv-mode
|
(use-package pyenv
|
||||||
:defer t)
|
: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
|
;; LSP using Microsoft's pyright language server
|
||||||
(use-package lsp-pyright
|
(use-package lsp-pyright
|
||||||
|
@ -78,6 +78,7 @@
|
|||||||
(require 'init-help)
|
(require 'init-help)
|
||||||
(require 'init-python)
|
(require 'init-python)
|
||||||
(require 'init-clojure)
|
(require 'init-clojure)
|
||||||
|
(require 'init-js)
|
||||||
(require 'init-yaml)
|
(require 'init-yaml)
|
||||||
(require 'init-terraform)
|
(require 'init-terraform)
|
||||||
(require 'init-run-command)
|
(require 'init-run-command)
|
||||||
|
Loading…
Reference in New Issue
Block a user