Parinfer time
This commit is contained in:
parent
64ae50d419
commit
9db349a29c
3 changed files with 117 additions and 107 deletions
|
@ -42,8 +42,6 @@
|
||||||
git-gutter
|
git-gutter
|
||||||
goto-chg
|
goto-chg
|
||||||
keychain-environment
|
keychain-environment
|
||||||
lispy
|
|
||||||
lispyville
|
|
||||||
lsp-scheme
|
lsp-scheme
|
||||||
magit
|
magit
|
||||||
magit-todos
|
magit-todos
|
||||||
|
@ -59,9 +57,11 @@
|
||||||
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
|
||||||
rainbow-delimiters
|
rainbow-delimiters
|
||||||
tempel
|
tempel
|
||||||
tree-sitter
|
tree-sitter
|
||||||
|
|
|
@ -62,6 +62,7 @@
|
||||||
(minibuffer-prompt-properties
|
(minibuffer-prompt-properties
|
||||||
(read-only t cursor-intangible t face minibuffer-prompt))
|
(read-only t cursor-intangible t face minibuffer-prompt))
|
||||||
(tab-always-indent 'complete)
|
(tab-always-indent 'complete)
|
||||||
|
(indent-tabs-mode nil)
|
||||||
(enable-recursive-minibuffers t)
|
(enable-recursive-minibuffers t)
|
||||||
(enable-remote-dir-locals t)
|
(enable-remote-dir-locals t)
|
||||||
(global-hl-line-mode t)
|
(global-hl-line-mode t)
|
||||||
|
@ -175,7 +176,8 @@
|
||||||
:config
|
:config
|
||||||
(with-eval-after-load 'eglot
|
(with-eval-after-load 'eglot
|
||||||
(setq completion-category-defaults nil))
|
(setq completion-category-defaults nil))
|
||||||
(setq completion-styles '(orderless basic)
|
(setq completion-styles
|
||||||
|
'(orderless basic)
|
||||||
completion-category-defaults nil
|
completion-category-defaults nil
|
||||||
completion-category-overrides '((file (styles partial-completion)))))
|
completion-category-overrides '((file (styles partial-completion)))))
|
||||||
|
|
||||||
|
@ -296,46 +298,57 @@
|
||||||
|
|
||||||
;;;; Lisp Navigation and Editing
|
;;;; Lisp Navigation and Editing
|
||||||
;;;;; Basic
|
;;;;; Basic
|
||||||
(use-package lispy
|
(use-package parinfer-rust-mode
|
||||||
:custom
|
:custom
|
||||||
(lispy-close-quotes-at-end-p t)
|
(parinfer-rust-auto-download t)
|
||||||
(lispy-compat '("cider" "edebug" "magit-blame-mode"))
|
|
||||||
(lispy-visit-method #'consult-find)
|
|
||||||
(lispy-occur-backend #'consult-line)
|
|
||||||
:hook
|
:hook
|
||||||
emacs-lisp-mode
|
emacs-lisp-mode
|
||||||
|
clojure-ts-mode
|
||||||
scheme-mode
|
scheme-mode
|
||||||
|
(parinfer-rust-mode . electric-pair-local-mode)
|
||||||
:config
|
:config
|
||||||
(evil-define-key 'insert 'prog-mode-map
|
(evil-define-key 'normal 'parinfer-rust-mode-map
|
||||||
"(" #'lispy-parens
|
(kbd "r") #'raise-sexp))
|
||||||
"{" #'lispy-braces
|
;; (use-package lispy
|
||||||
"}" #'lispy-brackets
|
;; :custom
|
||||||
")" #'lispy-right-nostring
|
;; (lispy-close-quotes-at-end-p t)
|
||||||
"\"" #'lispy-quotes
|
;; (lispy-compat '("cider" "edebug" "magit-blame-mode"))
|
||||||
(kbd "<DEL>") #'lispy-delete-backward
|
;; (lispy-visit-method #'consult-find)
|
||||||
">" #'special-lispy-slurp
|
;; (lispy-occur-backend #'consult-line)
|
||||||
"<" #'special-lispy-barf
|
;; :hook
|
||||||
"c" #'special-lispy-clone
|
;; emacs-lisp-mode
|
||||||
"q" #'special-lispy-ace-paren
|
;; scheme-mode
|
||||||
"w" #'special-lispy-move-up
|
;; :config
|
||||||
"s" #'special-lispy-move-down
|
;; (evil-define-key 'insert 'clojure-ts-mode-map
|
||||||
"r" #'special-lispy-raise
|
;; "(" #'lispy-parens
|
||||||
"e" #'special-lispy-eval))
|
;; "{" #'lispy-braces
|
||||||
|
;; "}" #'lispy-brackets
|
||||||
|
;; ")" #'lispy-right-nostring
|
||||||
|
;; "\"" #'lispy-quotes
|
||||||
|
;; (kbd "<DEL>") #'lispy-delete-backward
|
||||||
|
;; ">" #'special-lispy-slurp
|
||||||
|
;; "<" #'special-lispy-barf
|
||||||
|
;; "c" #'special-lispy-clone
|
||||||
|
;; "q" #'special-lispy-ace-paren
|
||||||
|
;; "w" #'special-lispy-move-up
|
||||||
|
;; "s" #'special-lispy-move-down
|
||||||
|
;; "r" #'special-lispy-raise
|
||||||
|
;; "e" #'special-lispy-eval))
|
||||||
|
|
||||||
(use-package lispyville
|
;; (use-package lispyville
|
||||||
:bind
|
;; :bind
|
||||||
(:map evil-normal-state-map
|
;; (:map evil-normal-state-map
|
||||||
("<leader>," . 'lispyville-comment-or-uncomment)
|
;; ("<leader>," . 'lispyville-comment-or-uncomment)
|
||||||
("<leader>." . 'lispyville-comment-and-clone-dwim)
|
;; ("<leader>." . 'lispyville-comment-and-clone-dwim)
|
||||||
("<leader>ci" . 'lispyville-comment-or-uncomment-line))
|
;; ("<leader>ci" . 'lispyville-comment-or-uncomment-line))
|
||||||
:hook
|
;; :hook
|
||||||
(lispy-mode . lispyville-mode))
|
;; (lispy-mode . lispyville-mode))
|
||||||
|
|
||||||
;;;;; Visual Aid
|
;;;;; Visual Aid
|
||||||
(use-package rainbow-delimiters
|
;; (use-package rainbow-delimiters
|
||||||
:hook
|
;; :hook
|
||||||
emacs-lisp-mode
|
;; emacs-lisp-mode
|
||||||
scheme-mode)
|
;; scheme-mode)
|
||||||
|
|
||||||
;;;; Programming
|
;;;; Programming
|
||||||
(use-package editorconfig
|
(use-package editorconfig
|
||||||
|
@ -407,14 +420,12 @@
|
||||||
|
|
||||||
;;;;; Clojure
|
;;;;; Clojure
|
||||||
(use-package clojure-ts-mode
|
(use-package clojure-ts-mode
|
||||||
:after (tree-sitter lispy)
|
:after tree-sitter
|
||||||
:config
|
:config
|
||||||
(require 'sesman)
|
(require 'sesman)
|
||||||
(sesman-install-menu clojure-mode-map)
|
(sesman-install-menu clojure-mode-map)
|
||||||
:hook
|
:hook
|
||||||
((clojure-ts-mode . lispy-mode)
|
((clojure-ts-mode . eglot-ensure)
|
||||||
(clojure-ts-mode . eglot-ensure)
|
|
||||||
(clojure-ts-mode . rainbow-delimiters-mode)
|
|
||||||
(clojure-ts-mode . (lambda ()
|
(clojure-ts-mode . (lambda ()
|
||||||
(setq-local sesman-system 'CIDER)))
|
(setq-local sesman-system 'CIDER)))
|
||||||
(clojure-ts-mode . (lambda ()
|
(clojure-ts-mode . (lambda ()
|
||||||
|
@ -428,9 +439,6 @@
|
||||||
("\\.cljc\\'" . #'clojurec-ts-mode)
|
("\\.cljc\\'" . #'clojurec-ts-mode)
|
||||||
("\\.cljs\\'" . #'clojurescript-ts-mode)
|
("\\.cljs\\'" . #'clojurescript-ts-mode)
|
||||||
:init
|
:init
|
||||||
(add-to-list 'lispy-clojure-modes 'clojure-ts-mode)
|
|
||||||
(add-to-list 'lispy-clojure-modes 'clojurec-ts-mode)
|
|
||||||
(add-to-list 'lispy-clojure-modes 'clojurescript-ts-mode)
|
|
||||||
(add-to-list 'tree-sitter-major-mode-language-alist
|
(add-to-list 'tree-sitter-major-mode-language-alist
|
||||||
'(clojure-ts-mode . clojure))
|
'(clojure-ts-mode . clojure))
|
||||||
(add-to-list 'tree-sitter-major-mode-language-alist
|
(add-to-list 'tree-sitter-major-mode-language-alist
|
||||||
|
|
2
home.nix
2
home.nix
|
@ -49,6 +49,8 @@ args@{ config, pkgs, hyprland, split-monitor-workspaces, flatpaks, ... }:
|
||||||
perl538Packages.TermReadKey
|
perl538Packages.TermReadKey
|
||||||
pinentry-qt
|
pinentry-qt
|
||||||
pixman
|
pixman
|
||||||
|
plan9port
|
||||||
|
edwood
|
||||||
podman-compose
|
podman-compose
|
||||||
pwvucontrol
|
pwvucontrol
|
||||||
qtpass
|
qtpass
|
||||||
|
|
Loading…
Reference in a new issue