From 60b5177ddd25818ce62a99261e517c6ebf6a033b Mon Sep 17 00:00:00 2001 From: William Moore Date: Wed, 17 Jul 2024 12:32:13 -0500 Subject: [PATCH] Update to some modes --- init.el | 3 +++ whomp/whomp-development.el | 13 ++++++++++++- whomp/whomp-games.el | 21 +++++++++++++++++++++ 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 whomp/whomp-games.el diff --git a/init.el b/init.el index bab4bb0..4804145 100644 --- a/init.el +++ b/init.el @@ -7,6 +7,7 @@ ) (global-ede-mode t) +(global-font-lock-mode t) ;; whomp helpers (require 'whomp-helpers) @@ -39,6 +40,8 @@ (require 'whomp-development) ;; AI configuration (temporarily removed pending consideration) ;; (require 'whomp-ai) +;; games configuration +(require 'whomp-games) ;; org configuration (require 'whomp-orgmode) ;; dashboard diff --git a/whomp/whomp-development.el b/whomp/whomp-development.el index 6c8aad1..25662b9 100644 --- a/whomp/whomp-development.el +++ b/whomp/whomp-development.el @@ -17,6 +17,7 @@ (const :tag "rainbow-delimiters" rainbowmode) ;; rainbow-delimiters support (const :tag "terraform" terraformmode) ;; terraform language support (const :tag "z80" z80mode) ;; z80 assembly language support + (const :tag "typescript" typescriptmode) ;; typescript language support ) :group 'whomp-config) @@ -81,6 +82,14 @@ (add-hook 'before-save-hook 'gofmt-before-save) (message "go-mode loaded")) +;; typescript-mode +(when (memq 'typescriptmode whomp-development) + (use-package typescript-mode + :straight t + :defer t + :hook (typescript-mode-hook . turn-on-font-lock)) + (message "typescript-mode loaded")) + ;; python-mode (when (memq 'pythonmode whomp-development) (when (memq 'elpymode whomp-development) @@ -101,7 +110,9 @@ ;; yaml-mode (when (memq 'yamlmode whomp-development) - (straight-use-package 'yaml-mode) + (use-package yaml-mode + :straight t + :defer t) (add-to-list 'auto-mode-alist '("\\.yml\\'" . yaml-mode)) (add-to-list 'auto-mode-alist '("\\.yaml\\'" . yaml-mode)) ;; yaml-mode is a bit too aggressive with its indentation diff --git a/whomp/whomp-games.el b/whomp/whomp-games.el new file mode 100644 index 0000000..57b684b --- /dev/null +++ b/whomp/whomp-games.el @@ -0,0 +1,21 @@ +;; +;; Games packages +;; These are games not installed by default +;; + +(defcustom whomp-games nil + "Include non-standard game packages." + :type '(set (const :tag "None" nil) + (const :tag "pacmacs" pacmacs-game) ;; code completion + ) + :group 'whomp-config) + +(when (memq 'pacmacs-game whomp-games) + (use-package pacmacs + :defer t + :ensure t) + (message "pacmacs loaded")) + +(message "W.H.O.M.P. games packages loaded") +(provide 'whomp-games) +;; whomp-games.el ends here