Files
.emacs.d/lisp/init-prog.el
andsy10 aa4dea523e style(config): Reformat Emacs Lisp code for consistency
Standardize formatting across multiple init files: expand
single-line use-package keywords onto separate lines, fix
indentation, remove outdated comments, and clean up whitespace. Also
adds mc/keymap <return> binding and improves fcitx5 startup logic in
EXWM.
2026-05-11 03:40:06 +08:00

57 lines
1.0 KiB
EmacsLisp

;;; init.el --- init.el -*- lexical-binding: t -*-
;;; Commentary:
;;; Code:
;; hs-minor-mode
(add-hook 'prog-mode-hook 'hs-minor-mode)
;; flycheck
(use-package flycheck)
(use-package flycheck-guile
:hook
(scheme-mode . (lambda ()
(require 'flycheck-guile))))
;; consult-flycheck
(use-package consult-flycheck)
;; tree-sitter
(use-package treesit-auto
: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)))
;; scheme
(use-package geiser
:config
(with-eval-after-load 'geiser
(setq geiser-default-implementation 'guile)))
(use-package geiser-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)))
(provide 'init-prog)
;;; init-prog.el ends here