diff options
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) |
