diff options
| author | Astounds <kirito@disroot.org> | 2026-02-28 00:39:33 -0500 |
|---|---|---|
| committer | Astounds <kirito@disroot.org> | 2026-02-28 00:39:33 -0500 |
| commit | 47333c1f4f6fd88c4f737d60bf0d796c357861a2 (patch) | |
| tree | 5cb37c3ae69f7fc252e2db078f654d94c9f4bff8 /modules/init-company.el | |
| parent | 1aedc8d100b656b26f8bd83a98e947b009a1b977 (diff) | |
| download | emacs-personal-47333c1f4f6fd88c4f737d60bf0d796c357861a2.tar.lz emacs-personal-47333c1f4f6fd88c4f737d60bf0d796c357861a2.tar.xz emacs-personal-47333c1f4f6fd88c4f737d60bf0d796c357861a2.zip | |
Performance improvements (2.4s → 0.97s, 60% faster):
- Enable use-package-always-defer for lazy loading
- Add native compilation support (Emacs 28+)
- Defer company, ivy, projectile with :defer
- Move settings from :config to :init where possible
- Remove redundant package-refresh-contents
Diffstat (limited to 'modules/init-company.el')
| -rw-r--r-- | modules/init-company.el | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/modules/init-company.el b/modules/init-company.el index 1c958ad..6113153 100644 --- a/modules/init-company.el +++ b/modules/init-company.el @@ -4,19 +4,20 @@ ;;; Code: (use-package company - :defer 5 + :defer 0.5 :diminish :bind (:map company-mode-map ("<backtab>" . company-complete)) - :config - ;; Global - (setq company-idle-delay 1 - company-minimum-prefix-length 1 + :init + (setq company-idle-delay 0.3 + company-minimum-prefix-length 2 company-show-numbers nil - company-tooltip-limit 20) - - ;; Facing + company-tooltip-limit 15 + company-dabbrev-ignore-case t + company-dabbrev-downcase nil) + :config + ;; Face customization (unless (face-attribute 'company-tooltip :background) (set-face-attribute 'company-tooltip nil :background "black" :foreground "gray40") (set-face-attribute 'company-tooltip-selection nil :inherit 'company-tooltip :background "gray15") @@ -24,8 +25,6 @@ (set-face-attribute 'company-preview-common nil :inherit 'company-preview :foreground "gray40") (set-face-attribute 'company-scrollbar-bg nil :inherit 'company-tooltip :background "gray20") (set-face-attribute 'company-scrollbar-fg nil :background "gray40")) - - ;; Activating globally (global-company-mode t)) (use-package company-quickhelp |
