diff --git a/init.el b/init.el index b1f4cf1..fc1691a 100644 --- a/init.el +++ b/init.el @@ -28,8 +28,8 @@ (require 'whomp-completion) ;; development configuration (require 'whomp-development) -;; extended development configuration -(require 'whomp-dev-ext) +;; AI configuration +(require 'whomp-ai) ;; org configuration (require 'whomp-orgmode) ;; dashboard diff --git a/whomp/whomp-ai.el b/whomp/whomp-ai.el new file mode 100644 index 0000000..502293c --- /dev/null +++ b/whomp/whomp-ai.el @@ -0,0 +1,34 @@ +;; +;; AI packages +;; These are the packages uncommon to most developers but are +;; necessary to those they're necessary! +;; + +(defcustom whomp-ai nil + "Whether or not to enable AI packages." + :type '(set (const :tag "None" nil) + (const :tag "copilot" copilotmode) ;; code completion + ) + :group 'whomp-config) + +(when (memq 'copilotmode whomp-ai) + (use-package dash + :straight t + :defer t) + (use-package editorconfig + :straight t + :defer t) + (use-package copilot + :straight (:host github :repo "zerolfx/copilot.el" :files ("dist" "*.el")) + :defer t + :ensure t + :config + ;; you can utilize :map :hook and :config to customize copilot + (add-hook 'prog-mode-hook 'copilot-mode) + (define-key copilot-completion-map (kbd "") 'copilot-accept-completion) + (define-key copilot-completion-map (kbd "TAB") 'copilot-accept-completion)) + (message "copilot loaded")) + +(message "W.H.O.M.P. AI packages loaded") +(provide 'whomp-ai) +;; whomp-ai.el ends here diff --git a/whomp/whomp-dev-ext.el b/whomp/whomp-dev-ext.el deleted file mode 100644 index 4c7a67b..0000000 --- a/whomp/whomp-dev-ext.el +++ /dev/null @@ -1,50 +0,0 @@ -;; -;; Extended development assistance packages -;; These are the packages uncommon to most developers but are -;; necessary to those they're necessary! -;; - -(defcustom whomp-dev-ext nil - "Whether or not to enable extended development assistance packages." - :type '(set (const :tag "None" nil) - (const :tag "copilot" copilotmode) ;; code completion - (const :tag "terraform" terraformmode) ;; terraform language support - ) - :group 'whomp-config) - -;; terraform-mode -(when (memq 'terraformmode whomp-dev-ext) - (use-package terraform-mode - :straight t - :defer t) - (when (eq 'company whomp-completion) - (use-package company-terraform - :straight t - :defer t - :config - (add-hook 'terraform-mode-hook #'company-terraform-init)) - (add-hook 'terraform-mode-hook #'terraform-format-on-save-mode) - (add-hook 'terraform-mode-hook #'terraform-format-on-save-mode)) - (message "terraform-mode loaded")) - -(when (memq 'copilotmode whomp-development) - (use-package dash - :straight t - :defer t) - (use-package editorconfig - :straight t - :defer t) - (use-package copilot - :straight (:host github :repo "zerolfx/copilot.el" :files ("dist" "*.el")) - :defer t - :ensure t - :config - ;; you can utilize :map :hook and :config to customize copilot - (add-hook 'prog-mode-hook 'copilot-mode) - (define-key copilot-completion-map (kbd "") 'copilot-accept-completion) - (define-key copilot-completion-map (kbd "TAB") 'copilot-accept-completion)) - (message "copilot loaded")) - -(message "W.H.O.M.P. extended development assistance packages loaded") -(provide 'whomp-dev-ext) -;; whomp-dev-ext.el ends here diff --git a/whomp/whomp-development.el b/whomp/whomp-development.el index f39380c..dbdb7de 100644 --- a/whomp/whomp-development.el +++ b/whomp/whomp-development.el @@ -15,9 +15,24 @@ (const :tag "elpy" elpymode) ;; python language support (elpy) (const :tag "yaml" yamlmode) ;; yaml language support (const :tag "rainbow-delimiters" rainbowmode) ;; rainbow-delimiters support + (const :tag "terraform" terraformmode) ;; terraform language support ) :group 'whomp-config) +;; terraform-mode +(when (memq 'terraformmode whomp-development) + (use-package terraform-mode + :straight t + :defer t) + (when (eq 'company whomp-completion) + (use-package company-terraform + :straight t + :defer t + :config + (add-hook 'terraform-mode-hook #'company-terraform-init)) + (add-hook 'terraform-mode-hook #'terraform-format-on-save-mode) + (add-hook 'terraform-mode-hook #'terraform-format-on-save-mode)) + (message "terraform-mode loaded")) ;; lsp-mode (when (memq 'lspmode whomp-development)