Browse Source

Moved general, added local leader & dotnet interface

master
Josh Wolfe 5 months ago
parent
commit
7d33a53777

+ 1
- 1
emacs/.emacs.d/base/keymaps.el View File

@@ -51,7 +51,7 @@
"t" 'shell-pop
"f" 'consult-ripgrep
";" (lambda() (interactive) (save-excursion (end-of-line) (insert-char ?\;)))
"id" (lambda() (interactive) (indent-region (point-min) (point-max)))
"=" `(,(lambda() (interactive) (indent-region (point-min) (point-max))) :wk "Indent buffer")
"o" (lambda() (interactive) (wolfe/org-open "everything")))

:init

+ 11
- 5
emacs/.emacs.d/base/project-settings.el View File

@@ -55,21 +55,27 @@
(wolfe/bind-leader
"m" 'persp-switch-to-buffer*
"k" 'persp-kill-buffer*
"p s" '(projectile-persp-switch-project :wk "Switch Project"))
:init
(setq persp-mode-prefix-key (kbd "C-c p"))
"p s" '(projectile-persp-switch-project :wk "Switch Project")
;; Persp prefix bindings
"TAB" '(nil :wk "Perspective")
"TAB s" '(persp-switch :wk "Switch")
"TAB k" '(persp-kill :wk "Kill")
"TAB r" '(persp-rename :wk "Rename")
"TAB b" '(persp-switch-last :wk "Switch Last")
"TAB n" '(persp-new :wk "New"))
:config
(set-face-attribute 'persp-selected-face nil
:foreground (face-attribute 'match :foreground))
(setq persp-sort 'access
persp-modestring-short t)
(persp-mode)
(use-package persp-projectile)

(add-hook 'persp-created-hook
(lambda ()
(persp-add-buffer "*Messages*"))))

(use-package persp-projectile
:after perspective projectile)

(use-package treemacs
:commands treemacs)


+ 18
- 0
emacs/.emacs.d/core/core-keybinds.el View File

@@ -0,0 +1,18 @@
;;; core-keybinds.el -*- lexical-binding: t; -*-

(use-package general
:demand t
:config
(general-auto-unbind-keys)

(general-create-definer wolfe/bind-leader
:keymaps 'global
:states '(normal insert visual emacs)
:prefix "SPC")

(general-create-definer wolfe/bind-local-leader
:keymaps 'global
:states '(normal insert visual emacs)
:prefix "SPC SPC"))

(provide 'core-keybinds)

+ 1
- 0
emacs/.emacs.d/core/core.el View File

@@ -189,6 +189,7 @@ TRIGGER-HOOK is a list of quoted hooks and/or sharp-quoted functions."

(defun wolfe/initialize ()
(require 'core-modules)
(require 'core-keybinds)
(add-hook 'emacs-startup-hook #'wolfe/load-packages-incrementally-h)

;; TODO: Replicate switch buffer hook

+ 9
- 0
emacs/.emacs.d/extensions/csharp.el View File

@@ -3,4 +3,13 @@
(use-package csharp-mode
:mode "\\.cs\\'")

(use-package dotnet
:after csharp-mode
:general
(wolfe/bind-local-leader
"c" '(dotnet-build :wk "Compile")
"r" '(dotnet-run :wk "Run")
"R" '(dotnet-run-with-args :wk "Run with args")
"t" '(dotnet-test :wk "Test")))

(provide 'csharp)

+ 0
- 10
emacs/.emacs.d/init.el View File

@@ -12,16 +12,6 @@

(wolfe/initialize)

(use-package general
:demand t
:config
(general-auto-unbind-keys)
(general-create-definer wolfe/bind-leader
:keymaps 'global
:states '(normal insert visual emacs)
:prefix "SPC"
:non-normal-prefix "M-SPC"))

(wolfe! :base
ui
settings

Loading…
Cancel
Save