Config: streamline config structure and reorganize modules

- Remove init-workspace.el and redundant UI/font/autothemer setup
- Add init-prog.el for programming language configs (treesit, lua, scheme, etc.)
- Defer org-refile loading via org-mode hook
- Adjust load order in init.el, add init-proxy
- Fix indentation and formatting issues
This commit is contained in:
User
2026-04-26 07:49:55 +08:00
parent c6cf0ef9d8
commit 4d810f270f
13 changed files with 205 additions and 347 deletions

41
lisp/init-prog.el Normal file
View File

@@ -0,0 +1,41 @@
;;; init.el --- init.el -*- lexical-binding: t -*-
;;; Commentary:
;;; Code:
;; tree-sitter
(use-package treesit-auto
:demand t
:config
(setq treesit-auto-install 'prompt)
(global-treesit-auto-mode)
(setq treesit-font-lock-level 4))
;; lua
(use-package lua-ts-mode
:mode ("\\.lua\\'" . lua-ts-mode)
:config
(add-to-list 'auto-mode-alist '("\\.lua\\'" . lua-ts-mode)))
;; ahk
(use-package ahk-mode)
;; scheme
(use-package geiser
:config
(with-eval-after-load 'geiser
(setq geiser-default-implementation 'guile)))
;; markdown
(use-package markdown-mode
:mode ("README\\.md\\'" . gfm-mode)
:init (setq markdown-command "multimarkdown")
:bind (:map markdown-mode-map
("C-c C-e" . markdown-do)))
(use-package geiser-guile)
(provide 'init-prog)
;;; init-prog.el ends here