feat: Update Emacs config with new keybindings, org states
- Add `magit-refs-mode` to tab grouping - Add `eshell`/`eat` under `C-c x` prefix - Replace `WAITING` org state with `IDKY` - Add `lisp-extra-font-lock` package - Fix daemon mode theme loading - Simplify denote keywords and update dired/dirvish bindings
This commit is contained in:
@@ -174,7 +174,8 @@
|
|||||||
(mode . magit-log-mode)
|
(mode . magit-log-mode)
|
||||||
(mode . magit-process-mode)
|
(mode . magit-process-mode)
|
||||||
(mode . magit-status-mode)
|
(mode . magit-status-mode)
|
||||||
(mode . magit-revision-mode)))
|
(mode . magit-revision-mode)
|
||||||
|
(mode . magit-refs-mode)))
|
||||||
("Directories" (or
|
("Directories" (or
|
||||||
(mode . dired-mode)
|
(mode . dired-mode)
|
||||||
(name . "^*dirvish")))
|
(name . "^*dirvish")))
|
||||||
|
|||||||
@@ -48,7 +48,8 @@
|
|||||||
(setq dirvish-use-mode-line t
|
(setq dirvish-use-mode-line t
|
||||||
dirvish-mode-line-format '(:left (sort omit symlink) :right (free-space index))
|
dirvish-mode-line-format '(:left (sort omit symlink) :right (free-space index))
|
||||||
dirvish-attributes '(file-time file-size)
|
dirvish-attributes '(file-time file-size)
|
||||||
dirvish-yank-sources 'session)
|
dirvish-yank-sources 'session
|
||||||
|
dirvish-hide-cursor nil)
|
||||||
|
|
||||||
:custom
|
:custom
|
||||||
(dirvish-quick-access-entries
|
(dirvish-quick-access-entries
|
||||||
|
|||||||
@@ -146,6 +146,12 @@
|
|||||||
"t" 'trashed
|
"t" 'trashed
|
||||||
"d" 'discomfort)
|
"d" 'discomfort)
|
||||||
|
|
||||||
|
;; x for some other command
|
||||||
|
(general-def
|
||||||
|
:prefix "C-c x"
|
||||||
|
"e" 'eshell
|
||||||
|
"E" 'eat)
|
||||||
|
|
||||||
;; scratch buffer
|
;; scratch buffer
|
||||||
(if *is-mac*
|
(if *is-mac*
|
||||||
(general-def "C-c <f12>" 'scratch-buffer)
|
(general-def "C-c <f12>" 'scratch-buffer)
|
||||||
@@ -163,10 +169,10 @@
|
|||||||
"C-n" 'my-dired-next-line
|
"C-n" 'my-dired-next-line
|
||||||
"n" 'my-dired-next-line
|
"n" 'my-dired-next-line
|
||||||
"b" 'dired-up-directory
|
"b" 'dired-up-directory
|
||||||
"C-b" 'dired-up-directory
|
"C-b" 'backward-char
|
||||||
|
"C-f" 'forward-char
|
||||||
"<right>" 'dired-find-file
|
"<right>" 'dired-find-file
|
||||||
"<left>" 'dired-up-directory
|
"<left>" 'dired-up-directory
|
||||||
"C-f" 'dired-find-file
|
|
||||||
"C-/" 'dired-undo
|
"C-/" 'dired-undo
|
||||||
"<SPC>" 'my-dirvish-layout-toggle
|
"<SPC>" 'my-dirvish-layout-toggle
|
||||||
"C-s" 'consult-line
|
"C-s" 'consult-line
|
||||||
@@ -310,7 +316,6 @@
|
|||||||
"l" 'org-store-link
|
"l" 'org-store-link
|
||||||
"k" 'comment-line
|
"k" 'comment-line
|
||||||
"K" 'comment-kill
|
"K" 'comment-kill
|
||||||
"E" 'eshell
|
|
||||||
"C-s" 'consult-focus-lines)
|
"C-s" 'consult-focus-lines)
|
||||||
|
|
||||||
;; global map
|
;; global map
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
;; 设置todo关键字
|
;; 设置todo关键字
|
||||||
(setq org-todo-keywords
|
(setq org-todo-keywords
|
||||||
(quote ((sequence "TODO(t)" "STARTED(S)" "|" "DONE(d!/!)")
|
(quote ((sequence "TODO(t)" "STARTED(S)" "|" "DONE(d!/!)")
|
||||||
(sequence "WAITING(w@/!)" "SOMEDAY(s)" "|" "CANCELLED(c@/!)"))))
|
(sequence "IDKY(i)" "SOMEDAY(s)" "|" "CANCELLED(c@/!)"))))
|
||||||
|
|
||||||
;; agenda相关
|
;; agenda相关
|
||||||
(cond
|
(cond
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
(setq denote-signature-history
|
(setq denote-signature-history
|
||||||
'("note" "project" "fun" "wisdom" "article" "data" "metanote" "agenda"))
|
'("note" "project" "fun" "wisdom" "article" "data" "metanote" "agenda"))
|
||||||
(setq denote-known-keywords
|
(setq denote-known-keywords
|
||||||
'("emacs" "org" "elisp" "scheme" "programming" "philosophy" "film" "linux" "computerstuff" "game" "masterpiece")))
|
'("emacs")))
|
||||||
|
|
||||||
;; denote-org
|
;; denote-org
|
||||||
(use-package denote-org)
|
(use-package denote-org)
|
||||||
@@ -190,7 +190,8 @@
|
|||||||
(:name "priority = B" :priority "B")
|
(:name "priority = B" :priority "B")
|
||||||
(:name "priority = C" :priority "C")
|
(:name "priority = C" :priority "C")
|
||||||
(:name "other priority" :priority< "C")
|
(:name "other priority" :priority< "C")
|
||||||
(:name "someday" :todo "SOMEDAY"))))))))))
|
(:name "someday" :todo "SOMEDAY")
|
||||||
|
(:name "I dont know yet" :todo "IDKY"))))))))))
|
||||||
|
|
||||||
;; capture
|
;; capture
|
||||||
(use-package org-capture
|
(use-package org-capture
|
||||||
@@ -206,6 +207,10 @@
|
|||||||
("s" "SOMEDAY" entry
|
("s" "SOMEDAY" entry
|
||||||
(file+headline "~/org/my-org-note/20260509T232442==agenda--all-my-todos__org.org" "Something to do")
|
(file+headline "~/org/my-org-note/20260509T232442==agenda--all-my-todos__org.org" "Something to do")
|
||||||
"* SOMEDAY %<%m-%d> %?\n%T"
|
"* SOMEDAY %<%m-%d> %?\n%T"
|
||||||
|
:empty-lines 1)
|
||||||
|
("i" "IDKY" entry
|
||||||
|
(file+headline "~/org/my-org-note/20260509T232442==agenda--all-my-todos__org.org" "Something to do")
|
||||||
|
"* IDKY %<%m-%d> %?\n%T"
|
||||||
:empty-lines 1)))
|
:empty-lines 1)))
|
||||||
(*is-android*
|
(*is-android*
|
||||||
'(("t" "TODO" entry
|
'(("t" "TODO" entry
|
||||||
@@ -215,6 +220,10 @@
|
|||||||
("s" "SOMEDAY" entry
|
("s" "SOMEDAY" entry
|
||||||
(file+headline "~/storage/shared/my-org-note/20260509T232442==agenda--all-my-todos__org.org" "Something to do")
|
(file+headline "~/storage/shared/my-org-note/20260509T232442==agenda--all-my-todos__org.org" "Something to do")
|
||||||
"* SOMEDAY %<%m-%d> %?\n%T"
|
"* SOMEDAY %<%m-%d> %?\n%T"
|
||||||
|
:empty-lines 1)
|
||||||
|
("i" "IDKY" entry
|
||||||
|
(file+headline "~/org/my-org-note/20260509T232442==agenda--all-my-todos__org.org" "Something to do")
|
||||||
|
"* IDKY %<%m-%d> %?\n%T"
|
||||||
:empty-lines 1)))
|
:empty-lines 1)))
|
||||||
(t nil))))
|
(t nil))))
|
||||||
|
|
||||||
|
|||||||
@@ -49,6 +49,10 @@
|
|||||||
:config
|
:config
|
||||||
(setq sly-lisp-implementations nil))
|
(setq sly-lisp-implementations nil))
|
||||||
|
|
||||||
|
(use-package lisp-extra-font-lock
|
||||||
|
:hook
|
||||||
|
(lisp-mode . lisp-extra-font-lock-mode))
|
||||||
|
|
||||||
;; markdown
|
;; markdown
|
||||||
(use-package markdown-mode
|
(use-package markdown-mode
|
||||||
:bind
|
:bind
|
||||||
|
|||||||
@@ -16,20 +16,12 @@
|
|||||||
'(solarized-emacs :fork (:host github :repo "Andsy10/solarized-emacs"))
|
'(solarized-emacs :fork (:host github :repo "Andsy10/solarized-emacs"))
|
||||||
:init
|
:init
|
||||||
;; 把主题加载延迟到frame创建之后,防止daemon模式下宏不能正常展开
|
;; 把主题加载延迟到frame创建之后,防止daemon模式下宏不能正常展开
|
||||||
;; (if *is-android*
|
(if (daemonp)
|
||||||
;; (if (daemonp)
|
(add-hook 'after-make-frame-functions
|
||||||
;; (add-hook 'after-make-frame-functions
|
(lambda (frame)
|
||||||
;; (lambda (frame)
|
(with-selected-frame frame
|
||||||
;; (with-selected-frame frame
|
(load-theme 'my-base16-dark t))))
|
||||||
;; (load-theme 'my-base16-light t))))
|
(load-theme 'my-base16-dark t)))
|
||||||
;; (load-theme 'my-base16-light t))
|
|
||||||
;; (if (daemonp)
|
|
||||||
;; (add-hook 'after-make-frame-functions
|
|
||||||
;; (lambda (frame)
|
|
||||||
;; (with-selected-frame frame
|
|
||||||
;; (load-theme 'my-base16-dark t))))
|
|
||||||
;; (load-theme 'my-base16-dark t)))
|
|
||||||
(load-theme 'my-base16-dark))
|
|
||||||
|
|
||||||
;; 行号
|
;; 行号
|
||||||
(use-package display-line-numbers
|
(use-package display-line-numbers
|
||||||
|
|||||||
@@ -90,7 +90,8 @@
|
|||||||
`(keycast-key ((,class (:foreground ,green :weight bold))))
|
`(keycast-key ((,class (:foreground ,green :weight bold))))
|
||||||
`(emms-playlist-track-face ((,class (:foreground ,cyan))))
|
`(emms-playlist-track-face ((,class (:foreground ,cyan))))
|
||||||
`(emms-playlist-selected-face ((,class (:foreground ,blue :weight bold))))
|
`(emms-playlist-selected-face ((,class (:foreground ,blue :weight bold))))
|
||||||
`(diff-hunk-header ((,class (:foreground "#c1a059" :background "#253224")))))))
|
`(diff-hunk-header ((,class (:foreground "#c1a059" :background "#253224"))))
|
||||||
|
`(lisp-extra-font-lock-backquote ((,class (:inherit font-lock-type-face)))))))
|
||||||
|
|
||||||
(provide-theme 'my-base16-dark)
|
(provide-theme 'my-base16-dark)
|
||||||
|
|
||||||
|
|||||||
@@ -90,7 +90,8 @@
|
|||||||
`(keycast-key ((,class (:foreground ,green :weight bold))))
|
`(keycast-key ((,class (:foreground ,green :weight bold))))
|
||||||
`(emms-playlist-track-face ((,class (:foreground ,cyan))))
|
`(emms-playlist-track-face ((,class (:foreground ,cyan))))
|
||||||
`(emms-playlist-selected-face ((,class (:foreground ,blue :weight bold))))
|
`(emms-playlist-selected-face ((,class (:foreground ,blue :weight bold))))
|
||||||
`(diff-hunk-header ((,class (:foreground "#6b561e" :background "#f0e6b8")))))))
|
`(diff-hunk-header ((,class (:foreground "#6b561e" :background "#f0e6b8"))))
|
||||||
|
`(lisp-extra-font-lock-backquote ((,class (:inherit font-lock-type-face)))))))
|
||||||
|
|
||||||
(provide-theme 'my-base16-light)
|
(provide-theme 'my-base16-light)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user