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 | |
| parent | 30cc644182e61031ceaf5c665deed4ffa98db311 (diff) | |
[emacs] use treesit-fold instead of hideshow, add nongnu elpa
Diffstat (limited to 'emacs')
| -rw-r--r-- | emacs/init.el | 9 | ||||
| -rw-r--r-- | emacs/inits/20-programming.el | 19 |
2 files changed, 16 insertions, 12 deletions
diff --git a/emacs/init.el b/emacs/init.el index 25656e4..f30bdd8 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -1,8 +1,8 @@ -;; Time-stamp: <2023-01-05 21h26 CET (anker)> +;; Time-stamp: <2026-04-14 10h29 BST (0eb6df5e)> (setq user-full-name "tslil") -(setq network-security-level 'high) +;; (setq network-security-level 'high) (setq native-comp-deferred-compilation t) @@ -10,6 +10,7 @@ (setq package-enable-at-startup nil load-prefer-newer t package-archives '(("gnu" . "https://elpa.gnu.org/packages/") + ("nongnu" . "https://elpa.nongnu.org/nongnu/") ("melpa" . "https://melpa.org/packages/"))) (package-initialize) @@ -25,10 +26,10 @@ :ensure t :demand :config - (setq init-loader-byte-compile nil) + (setq init-loader-show-log-after-init nil) (init-loader-load)) -(setq custom-file "~/.emacs.d/custom.el") +(setq custom-file "~/.config/emacs/custom.el") (unless (file-exists-p custom-file) (write-region "" nil custom-file)) (load custom-file) 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 |
