.
This commit is contained in:
parent
0ba852fd5e
commit
5cd8c090df
3 changed files with 31 additions and 28 deletions
|
@ -36,6 +36,7 @@
|
||||||
embark
|
embark
|
||||||
embark-consult
|
embark-consult
|
||||||
evil
|
evil
|
||||||
|
evil-cleverparens
|
||||||
evil-collection
|
evil-collection
|
||||||
forge
|
forge
|
||||||
geiser
|
geiser
|
||||||
|
@ -57,12 +58,12 @@
|
||||||
org-rainbow-tags
|
org-rainbow-tags
|
||||||
org-roam
|
org-roam
|
||||||
org-roam-ui
|
org-roam-ui
|
||||||
parinfer-rust-mode
|
|
||||||
pass
|
pass
|
||||||
password-store
|
password-store
|
||||||
password-store-otp
|
password-store-otp
|
||||||
plan9-theme
|
plan9-theme
|
||||||
rainbow-delimiters
|
rainbow-delimiters
|
||||||
|
smartparens
|
||||||
tempel
|
tempel
|
||||||
tree-sitter
|
tree-sitter
|
||||||
tree-sitter-langs
|
tree-sitter-langs
|
||||||
|
|
|
@ -53,6 +53,14 @@
|
||||||
;; See: https://github.com/radian-software/el-patch
|
;; See: https://github.com/radian-software/el-patch
|
||||||
(use-package el-patch)
|
(use-package el-patch)
|
||||||
|
|
||||||
|
;;;; Helper Functions
|
||||||
|
(defun conditional-keybind (filter-fn target-fn)
|
||||||
|
(lambda (_prefix)
|
||||||
|
(interactive "P")
|
||||||
|
(if (funcall filter-fn)
|
||||||
|
(call-interactively target-fn)
|
||||||
|
(call-interactively #'self-insert-command))))
|
||||||
|
|
||||||
;;;; Emacs
|
;;;; Emacs
|
||||||
(use-package emacs
|
(use-package emacs
|
||||||
:custom
|
:custom
|
||||||
|
@ -298,26 +306,20 @@
|
||||||
|
|
||||||
;;;; Lisp Navigation and Editing
|
;;;; Lisp Navigation and Editing
|
||||||
;;;;; Basic
|
;;;;; Basic
|
||||||
(use-package parinfer-rust-mode
|
(use-package smartparens
|
||||||
:custom
|
|
||||||
(parinfer-rust-auto-download t)
|
|
||||||
(parinfer-rust-troublesome-modes
|
|
||||||
(delete 'electric-pair-mode parinfer-rust-troublesome-modes))
|
|
||||||
:hook
|
:hook
|
||||||
emacs-lisp-mode
|
(smartparens-mode . show-smartparens-mode)
|
||||||
clojure-ts-mode
|
(smartparens-mode . smartparens-strict-mode)
|
||||||
scheme-mode
|
|
||||||
(parinfer-rust-mode . electric-pair-local-mode)
|
|
||||||
:config
|
:config
|
||||||
(setq-local electric-pair-inhibit-predicate
|
(evil-define-key 'insert smartparens-mode-map
|
||||||
(lambda (c)
|
(kbd "r") (conditional-keybind (lambda () (looking-at "("))
|
||||||
(if (or (char-equal c ?\()
|
#'sp-raise-sexp)
|
||||||
(char-equal c ?\[)
|
(kbd ">") (conditional-keybind (lambda () (thing-at-point-looking-at ")"))
|
||||||
(char-equal c ?\{))
|
#'sp-forward-slurp-sexp)))
|
||||||
t
|
|
||||||
(electric-pair-default-inhibit c))))
|
(use-package evil-cleverparens
|
||||||
(evil-define-key 'normal 'parinfer-rust-mode-map
|
:after smartparens
|
||||||
(kbd "r") #'raise-sexp))
|
:hook smartparens)
|
||||||
;; (use-package lispy
|
;; (use-package lispy
|
||||||
;; :custom
|
;; :custom
|
||||||
;; (lispy-close-quotes-at-end-p t)
|
;; (lispy-close-quotes-at-end-p t)
|
||||||
|
|
18
flake.lock
18
flake.lock
|
@ -27,11 +27,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1700087144,
|
"lastModified": 1700118404,
|
||||||
"narHash": "sha256-LJP1RW0hKNWmv2yRhnjkUptMXInKpn/rV6V6ofuZkHU=",
|
"narHash": "sha256-XkqpZpVoy1FV7UbiLkP+fQxxv/6KnwLYkFEHgE8z2IQ=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "ab1459a1fb646c40419c732d05ec0bf2416d4506",
|
"rev": "c1a033122df8a3c74fda3780c83a104a7d60873c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -50,11 +50,11 @@
|
||||||
"xdph": "xdph"
|
"xdph": "xdph"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1700137447,
|
"lastModified": 1700168597,
|
||||||
"narHash": "sha256-OcE1gFs/Fj2CEhYjx352arsSwZ9Nf63qfuTJ620o0WM=",
|
"narHash": "sha256-N+FsHxNTnSnqQW0e1SbMm3Vw59PZ7KTj+vR1hivSWCw=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "Hyprland",
|
"repo": "Hyprland",
|
||||||
"rev": "859841f4d1ceb4060dcfcd2a94976805eaa39d62",
|
"rev": "1d9bfa60a19975274afb5fd9a3492f8cb6742c2e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -138,11 +138,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1699781429,
|
"lastModified": 1699963925,
|
||||||
"narHash": "sha256-UYefjidASiLORAjIvVsUHG6WBtRhM67kTjEY4XfZOFs=",
|
"narHash": "sha256-LE7OV/SwkIBsCpAlIPiFhch/J+jBDGEZjNfdnzCnCrY=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "e44462d6021bfe23dfb24b775cc7c390844f773d",
|
"rev": "bf744fe90419885eefced41b3e5ae442d732712d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
Loading…
Reference in a new issue