Config: add org agenda files to recentf-exclude, add basic projectile config.

This commit is contained in:
User
2026-05-02 11:46:19 +08:00
parent 60ce9ddddf
commit 29b2bfb592
3 changed files with 14 additions and 4 deletions

View File

@@ -43,7 +43,8 @@
"m" 'consult-fd-global
"d" 'my-open-current-directory
"j" 'consult-jinx
"k" 'consult-kmacro)
"k" 'consult-kmacro
"o" 'consult-outline)
;; t for modes toggle
(general-def
@@ -167,7 +168,7 @@
"e" 'er/expand-region
"s" 'consult-focus-lines
"i" 'consult-imenu
"C-i" 'consult-outline
"I" 'consult-imenu-multi
"a" 'org-agenda
"l" 'org-store-link
"k" 'comment-line

View File

@@ -46,6 +46,9 @@
(sequence "WAITING(w@/!)" "SOMEDAY(S)" "|" "CANCELLED(c@/!)" "MEETING(m)" "PHONE(p)"))))
;; agenda相关
(with-eval-after-load 'recentf
(add-to-list 'recentf-exclude "~/org/.*\\.org\\'"))
(cond
(*is-windows*
(setq org-agenda-files '("h:/emacs/hugo/this-is-my-blog/all-blog.org"

View File

@@ -227,9 +227,15 @@ targets."
;; expand-region快速展开选中
(use-package expand-region)
;; ibuffer-projectile
;; projectile
(use-package projectile
:init (projectile-mode)
:bind (:map projectile-mode-map
("C-x p" . projectile-command-map))
:config (setq projectile-enable-caching t))
(use-package ibuffer-projectile
:config (add-hook 'ibuffer-hook
:init (add-hook 'ibuffer-hook
(lambda ()
(ibuffer-projectile-set-filter-groups)
(unless (eq ibuffer-sorting-mode 'alphabetic)