diff options
| -rw-r--r-- | emacs/init.el | 15 | ||||
| -rw-r--r-- | kanata/akko.kbd | 30 |
2 files changed, 42 insertions, 3 deletions
diff --git a/emacs/init.el b/emacs/init.el index acec309..4ca0680 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -433,6 +433,10 @@ apps are not started from a shell." (setq exec-path (split-string path-from-shell path-separator)))) (set-exec-path-from-shell-PATH) +(defun sudo-find-file (filename) + (interactive "Find file as sudo: ") + (find-file (concat "/sudo::" filename))) + (use-package avy :ensure t :demand t @@ -575,11 +579,20 @@ apps are not started from a shell." (meow-leader-define-key '("t" . vterm-toggle-cd) + + '("bs" . consult-buffer) + '("bk" . kill-buffer) + '("vs" . magit-status) + '("pb" . project-list-buffers) '("pp" . project-switch-project) '("pd" . project-find-dir) - '("pf" . project-find-file)))) + '("pf" . project-find-file) + + '("ff" . find-file) + '("fs" . sudo-find-file) + '("fr" . recentf-open)))) :config (meow-setup) diff --git a/kanata/akko.kbd b/kanata/akko.kbd index ffbf9ab..b98e46c 100644 --- a/kanata/akko.kbd +++ b/kanata/akko.kbd @@ -39,7 +39,8 @@ h (chord chords h) / (chord chords /) , (chord chords ,) - + + can (layer-switch canary) nav (layer-while-held nav) num (layer-while-held num) mods (layer-while-held mods) @@ -51,6 +52,17 @@ c (tap-hold-press 150 150 c @nav) spc (tap-hold-press 150 150 spc @mods) + + ;; mouse + mous (layer-switch mouse) + mup (movemouse-up 10 10) + mdn (movemouse-down 10 10) + mlft (movemouse-left 10 10) + mrgt (movemouse-right 10 10) + mwup (mwheel-up 10 50) + mwdn (mwheel-down 10 50) + mlc (chord m-chords mlc) + mrc (chord m-chords mrc) ) (defchords chords 1000 @@ -121,6 +133,12 @@ (i ,) S-\ ) +(defchords m-chords 500 + (mlc ) mlft + (mrc ) mrgt + (mlc mrc) mmid +) + ;; Canary layout (dg swap) ;; https://github.com/Apsu/Canary (deflayer canary @@ -128,7 +146,7 @@ tab w @l @y @p @k @z @x @o @u ; [ ] \ caps @c @r @s @t @b @f @n @e @i a ' ret lsft j @v @g @d @q @m @h @/ @, . rsft - @num lmet lalt @spc ralt rctl + @num lmet @mous @spc ralt rctl ) (deflayer empty @@ -162,3 +180,11 @@ _ _ _ _ @lmet _ _ @lmet _ _ _ _ _ _ _ _ _ _ ) + +(deflayer mouse + _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + _ _ _ _ _ _ _ @mlc @mup @mrc _ _ _ _ + _ _ _ _ _ _ _ @mlft @mdn @mrgt _ _ _ + _ _ _ _ _ _ _ @mwup _ @mwdn _ _ + _ _ @can _ _ _ +) |
