diff options
| author | tslil <tslil@posteo.de> | 2026-04-14 10:52:23 +0100 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-04-14 10:53:10 +0100 |
| commit | b6d206a9260f041648eb5fd9a508eff292a5260a (patch) | |
| tree | 73e92fd3f48528e12f9e982ea66dc4984e31f270 /emacs/inits/20-programming.el | |
| parent | 30cc644182e61031ceaf5c665deed4ffa98db311 (diff) | |
[emacs] use treesit-fold instead of hideshow, add nongnu elpa
Diffstat (limited to 'emacs/inits/20-programming.el')
| -rw-r--r-- | emacs/inits/20-programming.el | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/emacs/inits/20-programming.el b/emacs/inits/20-programming.el index 2aa518f..43954e4 100644 --- a/emacs/inits/20-programming.el +++ b/emacs/inits/20-programming.el @@ -1,4 +1,4 @@ -;; Time-stamp: <2026-04-07 14h05 BST (anker)> +;; Time-stamp: <2026-04-14 10h52 BST (0eb6df5e)> ;; ----------------------------------------------------------------------------- ;; General setup @@ -15,10 +15,10 @@ ;; (when (< ww (+ 5 fill-column)) ;; (enlarge-window-horizontally (- (+ 5 fill-column) ww))))) -(defun align-to-equals (begin end) - "Align region to equal signs" - (interactive "r") - (align-regexp begin end "\\(\\s-*\\)=" 1 1 )) +[(defun align-to-equals (begin end) + "Align region to equal signs" + (interactive "r") + (align-regexp begin end "\\(\\s-*\\)=" 1 1 ))]I (use-package eglot :defer @@ -42,9 +42,12 @@ :defer :ensure) -(use-package hideshow - :defer - :bind (("C-c C-f C-f" . hs-toggle-hiding))) +(use-package treesit-fold + :ensure + :bind (:map treesit-fold-mode-map + ("C-^" . treesit-fold-toggle)) + :config + (global-treesit-fold-mode)) (use-package dtrt-indent :ensure |
