refactor: restructure Emacs config and add org journal features

- Add .gitignore for config management
- Fix early-init compatibility for tool-bar-mode
- Add org-journal, org-super-agenda, and org-ql support
- Improve consult with cross-platform file search
- Add embark-export keybinding
This commit is contained in:
User
2026-03-26 00:15:24 +08:00
parent 0f4ddc392c
commit d7d81d8fbf
6 changed files with 175 additions and 137 deletions

View File

@@ -128,10 +128,16 @@
(global-set-key (kbd "C-c i") 'consult-imenu) ;; imenu
(global-set-key (kbd "C-c f r") 'consult-recent-file) ;; 最近打开
(global-set-key (kbd "C-c f f") 'consult-fd) ;; 调用fd进行目录内搜索
(global-set-key (kbd "C-c f l") 'consult-locate) ;; consult-locate
(global-set-key (kbd "C-c f g") 'consult-ripgrep) ;; consult-ripgrep
(global-set-key (kbd "C-c y") 'consult-yank-from-kill-ring) ;; 从kill ring中粘贴
(global-set-key (kbd "C-x r b") 'consult-bookmark) ;; 书签菜单embark中有更多操作
(define-key minibuffer-local-map (kbd "C-c C-e") 'embark-export) ;; 把minibuffer结果在一个菜单中显示
(if *is-mac*
(progn
(global-set-key (kbd "C-c f l") 'consult-fd-global)
(global-set-key (kbd "C-c f m") 'consult-locate))
(global-set-key (kbd "C-c f l") 'consult-locate)
(global-set-key (kbd "C-c f m") 'consult-fd-global))
;; hungry-delete
(global-set-key (kbd "C-c DEL") 'hungry-delete-backward) ;; 向后删除到第一个非空字符