Update to some modes

This commit is contained in:
William Moore 2024-07-17 12:32:13 -05:00
parent 9f75c40785
commit 60b5177ddd
3 changed files with 36 additions and 1 deletions

View File

@ -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

View File

@ -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

21
whomp/whomp-games.el Normal file
View File

@ -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