Further housekeeping, bring the initial load down to under 1500 ms
Some checks failed
/ Test config on 20 (push) Failing after 53s

Make the editor load faster by deferring as much as possible until
later use. For example, LSP load is now deferred until first use and
no longer blocking.

Use only elixir-format from elixir-mode, for similar speed
reasons. The rest of the package has been taken over by the treesitter
version of the mode.
This commit is contained in:
Maciej 2025-01-05 08:04:24 +02:00
parent 3ffb484fd8
commit b0361861b4
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
13 changed files with 297 additions and 328 deletions

View file

@ -2,7 +2,7 @@
;;; Commentary:
;;; Code:
;; Use flycheck globally to check syntax and compile languages
;; Use flycheck checks with flymake.
(use-package flymake-flycheck :ensure t :defer t :config
(setq-default
flycheck-disabled-checkers
@ -10,36 +10,18 @@
'(emacs-lisp emacs-lisp-checkdoc
emacs-lisp-package sh-shellcheck))))
;; Use flymake, the built in linter/checker.
(use-package flymake :ensure nil
:defer t
:config
(setopt flymake-mode-line-lighter "Fly") ;; Show 'Fly' in mode line
(setopt elisp-flymake-byte-compile-load-path load-path) ;; Use the same load-path as normal configuration
;; Show 'Fly' in mode line.
(setopt flymake-mode-line-lighter "Fly")
;; Use the same load-path as normal configuration. This makes the errors that
;; appear in elisp files less jarring.
(setopt elisp-flymake-byte-compile-load-path load-path)
:hook ((prog-mode . flymake-mode)
(text-mode . flymake-mode)
(flymake-mode . flymake-flycheck-auto)))
;; (use-package flycheck :ensure t
;; :custom ((flycheck-emacs-lisp-load-path 'inherit))
;; :config
;; (global-flycheck-mode t)
;; (setopt flycheck-emacs-lisp-load-path 'inherit)
;; (unbind-key "C-c ! C-c" flycheck-mode-map)
;; (unbind-key "C-c ! C-w" flycheck-mode-map)
;; (unbind-key "C-c ! ?" flycheck-mode-map)
;; (unbind-key "C-c ! C" flycheck-mode-map)
;; (unbind-key "C-c ! H" flycheck-mode-map)
;; (unbind-key "C-c ! V" flycheck-mode-map)
;; (unbind-key "C-c ! c" flycheck-mode-map)
;; (unbind-key "C-c ! e" flycheck-mode-map)
;; (unbind-key "C-c ! h" flycheck-mode-map)
;; (unbind-key "C-c ! i" flycheck-mode-map)
;; (unbind-key "C-c ! l" flycheck-mode-map)
;; (unbind-key "C-c ! n" flycheck-mode-map)
;; (unbind-key "C-c ! p" flycheck-mode-map)
;; (unbind-key "C-c ! s" flycheck-mode-map)
;; (unbind-key "C-c ! v" flycheck-mode-map)
;; (unbind-key "C-c ! x" flycheck-mode-map))
(provide 'icejam-flycheck)
;;; icejam-flycheck.el ends here