updating parinfer and adjusting keymap

This commit is contained in:
Matt Nish-Lapidus 2024-04-06 13:20:25 -04:00
parent 7fd35f59e6
commit ec93c20223
5 changed files with 98 additions and 88 deletions

View file

@ -6,7 +6,7 @@
"C-x p" #'+popup/other) "C-x p" #'+popup/other)
(:when (modulep! :ui workspaces) (:when (modulep! :ui workspaces)
(:when IS-MAC (:when (featurep :system 'macos)
"s-t" #'+workspace/new "s-t" #'+workspace/new
"s-T" #'+workspace/display "s-T" #'+workspace/display
"s-1" #'+workspace/switch-to-0 "s-1" #'+workspace/switch-to-0
@ -20,7 +20,6 @@
"s-9" #'+workspace/switch-to-8 "s-9" #'+workspace/switch-to-8
"s-0" #'+workspace/switch-to-final))) "s-0" #'+workspace/switch-to-final)))
(map! :leader (map! :leader
"`" nil "`" nil
(:prefix ("m" . "<localleader>")) ; bound locally (:prefix ("m" . "<localleader>")) ; bound locally
@ -404,14 +403,6 @@
"s-<return>" #'split-window-below "s-<return>" #'split-window-below
"C-M-S-s-<mouse-1>" #'+fold/toggle) "C-M-S-s-<mouse-1>" #'+fold/toggle)
;; remove default Lispy mode bindings
(map! :map lispy-mode-map
"M-<left>" nil
"M-<right>" nil)
(map! :map lispy-mode-map-lispy
"M-<left>" nil
"M-<right>" nil)
(map! (map!
:localleader :localleader
:map lisp-mode-map :map lisp-mode-map
@ -423,6 +414,8 @@
"M-]" #'sp-forward-slurp-sexp "M-]" #'sp-forward-slurp-sexp
"M-{" #'sp-backward-slurp-sexp "M-{" #'sp-backward-slurp-sexp
"M-}" #'sp-backward-barf-sexp "M-}" #'sp-backward-barf-sexp
"M-)" #'sp-split-sexp
"M-(" #'sp-splice-sexp
"s-(" #'sp-wrap-round "s-(" #'sp-wrap-round
"s-)" #'sp-unwrap-sexp "s-)" #'sp-unwrap-sexp
"s-[" #'sp-wrap-square "s-[" #'sp-wrap-square

View file

@ -100,6 +100,10 @@
(after! anzu (after! anzu
(global-anzu-mode)) (global-anzu-mode))
(after! parinfer-rust-mode
(setq parinfer-rust-auto-download t)
(setq parinfer-rust-preferred-mode "smart"))
(setq vterm-kill-buffer-on-exit t) (setq vterm-kill-buffer-on-exit t)
(setq dap-ui-variable-length 200) (setq dap-ui-variable-length 200)
@ -176,7 +180,7 @@
(after! vertico (after! vertico
(vertico-mouse-mode)) (vertico-mouse-mode))
;; better completions for sly ;; sly
(after! sly (after! sly
(setq sly-lisp-implementations (setq sly-lisp-implementations
'((sbcl ("sbcl" "--dynamic-space-size" "12000")) '((sbcl ("sbcl" "--dynamic-space-size" "12000"))

View file

@ -169,7 +169,7 @@
(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"} (ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
(rust +lsp +tree-sitter) ; Fe2O3.unwrap().unwrap().unwrap().unwrap() (rust +lsp +tree-sitter) ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
;;scala ; java, but good ;;scala ; java, but good
(scheme +guile +chez) ; a fully conniving family of lisps (scheme +guile) ; a fully conniving family of lisps
sh ; she sells {ba,z,fi}sh shells on the C xor sh ; she sells {ba,z,fi}sh shells on the C xor
;;sml ;;sml
;;solidity ; do you need a blockchain? No. ;;solidity ; do you need a blockchain? No.

View file

@ -17,6 +17,16 @@
;; SPC j/k will run the original command in MOTION state. ;; SPC j/k will run the original command in MOTION state.
'("j" . "H-j") '("j" . "H-j")
'("k" . "H-k")) '("k" . "H-k"))
;; (map! :map meow-paren-state-keymap
;; "h" #'sp-backward-sexp
;; "j" #'sp-forward-sexp)
;; (meow-define-state paren
;; "meow state for lisps"
;; :lighter " [P]"
;; :keymap meow-paren-state-keymap)
(map! :map meow-normal-state-keymap (map! :map meow-normal-state-keymap
"<" #'meow-beginning-of-thing "<" #'meow-beginning-of-thing
">" #'meow-end-of-thing ">" #'meow-end-of-thing
@ -78,6 +88,8 @@
"," #'meow-inner-of-thing "," #'meow-inner-of-thing
"." #'meow-bounds-of-thing "." #'meow-bounds-of-thing
"\\" #'bookmark-jump "\\" #'bookmark-jump
"`" #'bookmark-set
"~" #'bookmark-delete
"'" #'repeat "'" #'repeat
"=" #'meow--eval-sexp "=" #'meow--eval-sexp
":" #'meow--eval-sexp ":" #'meow--eval-sexp

View file

@ -17,6 +17,7 @@
(unpin! cape) (unpin! cape)
(unpin! corfu) (unpin! corfu)
(unpin! yasnippet-capf) (unpin! yasnippet-capf)
(unpin! parinfer-rust-mode)
;; (unpin! geiser) ;; (unpin! geiser)
(package! meow-vterm (package! meow-vterm