chore(editor): disable aggressive-indent-mode hook

This commit is contained in:
2026-05-24 11:20:07 -03:00
parent 715fcdad4e
commit 0344b791ba

View File

@@ -29,12 +29,12 @@
:diminish :diminish
:autoload aggressive-indent-mode :autoload aggressive-indent-mode
:functions too-long-file-p :functions too-long-file-p
:hook ((elpaca-after-init . global-aggressive-indent-mode) ;; :hook ((elpaca-after-init . global-aggressive-indent-mode)
;; NOTE: Disable in large files due to the performance issues ;; ;; NOTE: Disable in large files due to the performance issues
;; https://github.com/Malabarba/aggressive-indent-mode/issues/73 ;; ;; https://github.com/Malabarba/aggressive-indent-mode/issues/73
(find-file . (lambda () ;; (find-file . (lambda ()
(when (too-long-file-p) ;; (when (too-long-file-p)
(aggressive-indent-mode -1))))) ;; (aggressive-indent-mode -1)))))
:config :config
;; Disable in some modes ;; Disable in some modes
(dolist (mode '(gitconfig-mode (dolist (mode '(gitconfig-mode