diff options
| author | tslil clingman <tslil@posteo.de> | 2025-06-25 20:04:30 +0100 |
|---|---|---|
| committer | tslil clingman <tslil@posteo.de> | 2025-06-25 20:04:30 +0100 |
| commit | ae6b5a35f4ed8c44cc2e19e8e60b91eae79d6eb9 (patch) | |
| tree | 2c7a6c4b04341cca54054563daf86cc032aa8ed7 /emacs/inits/22-lisp.el | |
| parent | 1805d8ddfc1b929101a02160938699ee239437cd (diff) | |
[emacs] use treesitter for expand-region, -avy, +ruff,lua-mode
Diffstat (limited to 'emacs/inits/22-lisp.el')
| -rw-r--r-- | emacs/inits/22-lisp.el | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/emacs/inits/22-lisp.el b/emacs/inits/22-lisp.el index dcbff69..9c5e6fb 100644 --- a/emacs/inits/22-lisp.el +++ b/emacs/inits/22-lisp.el @@ -1,4 +1,4 @@ -;; Time-stamp: <2025-03-25 20h09 GMT (3238da39)> +;; Time-stamp: <2025-06-25 20h02 BST (anker)> ;; ---------------------------------------------------------------------------- ;; Lisp helpers @@ -59,12 +59,22 @@ (interactive) (avy-goto-char ?\) )) -;; TODO: this doesn't work anymore? (use-package corral :ensure t) + +(use-package expand-region + :ensure + :defer + :config + (setq expand-region-fast-keys-enabled t + expand-region-contract-fast-key "c" + expand-region-reset-fast-key "e" + expand-region-autocopy-register "i")) + (defun make-lisp-bindings () (let ((map (eval (read (format "%s-map" major-mode))))) (progn (require 'corral) + (define-key map (kbd "M-r") 'er/expand-region) (define-key map (kbd "M-e") 'forward-sexp) (define-key map (kbd "M-a") 'backward-sexp) (define-key map (kbd "M-,") 'lh-backward-delim) @@ -90,8 +100,6 @@ ;; ---------------------------------------------------------------------------- ;; Mode configurations -;; (use-package rainbow-blocks :ensure t) - (add-hook 'emacs-lisp-mode-hook (lambda () (eldoc-mode) |
