whompmacs/lib/thwap-comp.el

19 lines
722 B
EmacsLisp
Raw Normal View History

2024-07-05 05:48:54 +00:00
;; Company and auto-complete configuration
(when (and thwap-comp-enable-company (not thwap-comp-enable-auto-complete))
(straight-use-package 'company)
(add-hook 'after-init-hook 'global-company-mode))
;; If auto-complete is enabled, enable it
(when (and thwap-comp-enable-auto-complete (not thwap-comp-enable-company))
(straight-use-package 'auto-complete)
(ac-config-default))
;; If both are enabled, disable auto-complete
(when (and thwap-comp-enable-auto-complete thwap-comp-enable-company)
(message "Both company and auto-complete are enabled. These are mutually exclusive. Disabling auto-complete.")
(straight-use-package 'company)
(add-hook 'after-init-hook 'global-company-mode))
2024-07-05 05:48:54 +00:00
2024-07-07 01:13:47 +00:00
(provide 'thwap-comp)