Skip to content

Commit d3635e4

Browse files
committed
backup
1 parent dfdb3fa commit d3635e4

10 files changed

+46
-12
lines changed

.vanilla-emacs.d/init.el

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
(setq imi/lisp-dir (expand-file-name (concat user-emacs-directory "lisp")))
77
(setq imi/site-lisp-dir (expand-file-name (concat user-emacs-directory "site-lisp")))
8+
(setq imi/roam-nursery-dir (expand-file-name (concat user-emacs-directory "nursery ")))
9+
(add-to-list 'load-path (concat imi/roam-nursery-dir "/lisp"))
10+
811

912
(add-to-list 'load-path imi/lisp-dir)
1013
(add-to-list 'load-path imi/site-lisp-dir) ;; 第三方库
@@ -101,3 +104,4 @@
101104

102105

103106

107+
(put 'scroll-left 'disabled nil)

.vanilla-emacs.d/lisp/init-citar.el

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
;; -*- lexical-binding: t; -*-
22

3+
(setq imi/zotero-path "~/imymirror/zotero/")
4+
35
(use-package citar :straight t
46
:no-require
57
:custom
6-
(org-cite-global-bibliography (list (concat imi/second-brain-root-path "assets/My Library.bib")))
8+
(org-cite-global-bibliography (list (concat imi/zotero-path "My Library.bib")))
79
(org-cite-insert-processor 'citar)
810
(org-cite-follow-processor 'citar)
911
(org-cite-activate-processor 'citar)

.vanilla-emacs.d/lisp/init-emacs.el

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
;; ("C-c d" . km-telega-chat-delete)
1515
)
1616
:config
17-
(put 'narrow-to-region 'disabled nil))
17+
(put 'narrow-to-region 'disabled nil)
18+
(electric-pair-mode 1))
1819

1920
(provide 'init-emacs)

.vanilla-emacs.d/lisp/init-font.el

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
(set-fontset-font t 'cjk-misc (font-spec :family "Hiragino Sans GB" :size 15)))
1414

1515
(add-hook 'after-make-frame-functions (lambda (frame) (imi/set-font)))
16+
(imi/set-font)
1617

1718
;; mode-line
1819
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

.vanilla-emacs.d/lisp/init-latex.el

+1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@
4343
;; add accent snippets
4444
:cond #'laas-object-on-left-condition
4545
"qq" (lambda () (interactive) (laas-wrap-previous-object "sqrt"))))
46+
4647
(provide 'init-latex)

.vanilla-emacs.d/lisp/init-roam.el

+32-6
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33

44
(setq imi/second-brain-root-path (concat imi/central-management-system-root-path "second-brain/"))
55

6-
(setq imi/roam-daily-path (concat imi/second-brain-root-path "note/daily-note/"))
7-
(setq imi/roam-directory-alist '("Learning-Management-System/blog"))
6+
7+
(setq imi/roam-directory-alist '("Learning-Management-System/1-old-before-book-zixuedaquan"
8+
"Learning-Management-System/2-zixuedaquan/heima-java-web"
9+
"Learning-Management-System/2-zixuedaquan/pbr"
10+
"Learning-Management-System/2-zixuedaquan/methodology"
11+
"Learning-Management-System/2-zixuedaquan/psychology"
12+
"Learning-Management-System/2-zixuedaquan/"))
813

914
(defun imi/setup-roam-db (name)
1015
(let ((directory (concat imi/second-brain-root-path "note/" name))
@@ -42,6 +47,7 @@
4247
("C-c n n" . org-roam-node-find)
4348
;; ("C-c n g" . org-roam-graph)
4449
("C-c n g" . org-roam-ui-mode)
50+
("C-c n G" . org-roam-ui-node-local)
4551
("C-c n i" . org-roam-node-insert)
4652
("C-c n c" . org-roam-capture)
4753
("C-c n t" . org-roam-tag-add)
@@ -57,11 +63,32 @@
5763

5864
(add-to-list 'display-buffer-alist '("\\*org-roam\\*" (display-buffer-in-direction) (direction . right) (window-width . 0.33) (window-height . fit-window-to-buffer)))
5965

60-
(setq org-roam-node-display-template "${tags:35} ${title:80}" )
61-
66+
;; (setq org-roam-node-display-template "${tags:35} ${title:80}" )
67+
(cl-defmethod org-roam-node-filetitle ((node org-roam-node))
68+
"Return the file TITLE for the node."
69+
(org-roam-get-keyword "TITLE" (org-roam-node-file node)))
70+
71+
(cl-defmethod org-roam-node-hierarchy ((node org-roam-node))
72+
"Return the hierarchy for the node."
73+
(let ((title (org-roam-node-title node))
74+
(olp (org-roam-node-olp node))
75+
(level (org-roam-node-level node))
76+
(filetitle (org-roam-node-filetitle node)))
77+
(concat
78+
(if (> level 0) (concat title " @@ ") title)
79+
(if (> level 0) (concat filetitle " "))
80+
(if (> level 1) (concat (string-join olp " > ") ""))
81+
)))
82+
83+
(setq org-roam-node-display-template "${tags:30} ${hierarchy:*} ")
84+
85+
6286
;; daily
6387
(require 'org-roam-dailies)
88+
89+
(setq imi/roam-daily-path (concat imi/second-brain-root-path "note/daily-note/"))
6490
(setq org-roam-dailies-directory imi/roam-daily-path)
91+
6592
(setq org-roam-dailies-capture-templates '(("d" "default" entry "* %<%Y-%m-%d %H:%M> %?" :if-new (file+head "%<%Y-%m-%d>.org" "#+title: %<%Y-%m-%d>\n#+filetags: :daily:\n"))))
6693
(setq org-roam-capture-templates '(("d" "default" plain "%?" :target (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n") :unnarrowed t)))
6794

@@ -82,7 +109,7 @@
82109

83110
(use-package consult-org-roam :straight t
84111
:init
85-
; (require 'consult-org-roam)
112+
; (require 'consult-org-roam)
86113
;; Activate the minor-mode
87114
(consult-org-roam-mode 1)
88115
:custom
@@ -103,5 +130,4 @@
103130
("C-c n r" . consult-org-roam-search))
104131

105132

106-
107133
(provide 'init-roam)

.vanilla-emacs.d/lisp/init-some-path.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;; -*- lexical-binding: t; -*-
22

3-
(setq imi/central-management-system-root-path "~/central-management-system/")
3+
(setq imi/central-management-system-root-path "~/imymirror/")
44

55

66
(setq sensitive-path "~/private/sensitive.el")

.vanilla-emacs.d/lisp/init-telega.el

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
(define-key telega-msg-button-map "k" nil)
1212
(define-key telega-msg-button-map (kbd "SPC") nil)
1313

14-
(global-set-key (kbd "C-M-s-)") 'telega)
15-
1614
(setq telega-chat-show-avatars t)
1715
(setq telega-use-images t)
1816

.vanilla-emacs.d/lisp/init-theme.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
;; Global settings (defaults)
1717
(setq doom-themes-enable-bold t ; if nil, bold is universally disabled
1818
doom-themes-enable-italic t) ; if nil, italics is universally disabled
19-
(load-theme 'doom-solarized-dark-high-contrast t)
19+
(load-theme 'doom-rouge t)
2020

2121
;; Enable flashing mode-line on errors
2222
(doom-themes-visual-bell-config)

.vanilla-emacs.d/site-lisp/nursery

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 56f6f467fef508f1e5e2d3b6538da4bb2f2dd27a

0 commit comments

Comments
 (0)