config: add macOS support with cross-platform compatibility

- Add platform-specific keybindings, paths, and settings for macOS
- Update org-mode templates and agenda files for both Windows and Mac
- Add vterm and lua-ts-mode packages (non-Windows)
- Configure Chinese segmentation for macOS
- Adjust font sizes and encoding settings per platform
This commit is contained in:
Andsy10
2026-03-24 06:34:19 +08:00
parent 95a6adb2b8
commit 0f4ddc392c
6 changed files with 120 additions and 29 deletions

View File

@@ -104,8 +104,10 @@
;; 中键使用embark打开定义
(global-set-key (kbd "<mouse-2>") 'xref-find-definitions)
;; 使用C-c <delete>切换到scrath buffer
(global-set-key (kbd "C-c <delete>") 'scratch-buffer)
;; 使用快速切换到scrath buffer
(if *is-mac*
(global-set-key (kbd "C-C <f12>") 'scratch-buffer)
(global-set-key (kbd "C-c <delete>") 'scratch-buffer))
;; 调整window
(global-set-key (kbd "<f5>") 'shrink-window-horizontally)