Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
emacs.d
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
Liu Miao
emacs.d
Commits
cc1b06db
Commit
cc1b06db
authored
3 years ago
by
MoScribe
Browse files
Options
Downloads
Patches
Plain Diff
add roam template list
parent
8aab616f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lisp/configs.el
+2
-0
2 additions, 0 deletions
lisp/configs.el
lisp/init-org.el
+9
-0
9 additions, 0 deletions
lisp/init-org.el
with
11 additions
and
0 deletions
lisp/configs.el
+
2
−
0
View file @
cc1b06db
...
@@ -90,5 +90,7 @@
...
@@ -90,5 +90,7 @@
(
defvar
user/org-src-block-face
'
(
:family
"Jetbrains Mono"
)
(
defvar
user/org-src-block-face
'
(
:family
"Jetbrains Mono"
)
"Face for org source block."
)
"Face for org source block."
)
(
defvar
user/roam-templates
nil
)
(
provide
'configs
)
(
provide
'configs
)
;;; configs.el ends here
;;; configs.el ends here
This diff is collapsed.
Click to expand it.
lisp/init-org.el
+
9
−
0
View file @
cc1b06db
...
@@ -32,6 +32,12 @@
...
@@ -32,6 +32,12 @@
(
defvar
org-user-latex-class
(
defvar
org-user-latex-class
(
list
org-ctexart-class
org-complex-ctexbook-class
org-simple-ctexbook-class
))
(
list
org-ctexart-class
org-complex-ctexbook-class
org-simple-ctexbook-class
))
(
defvar
roam/default-capture
'
(
"d"
"default"
plain
"%?"
:if-new
(
file+head
"${slug}.org"
"#+title: ${title}\n\n#+startup: indent\n"
)
:unnarrowed
t
))
(
use-package
org
(
use-package
org
:if
user/enable-org
:if
user/enable-org
:ensure
org
:ensure
org
...
@@ -183,6 +189,9 @@
...
@@ -183,6 +189,9 @@
org-roam-tag-add
org-roam-tag-add
org-roam-tag-delete
)
org-roam-tag-delete
)
:config
:config
(
add-to-list
'user/roam-templates
roam/default-capture
)
(
setq
org-roam-capture-templates
user/roam-templates
)
(
user/set-leader-key*
nil
org-mode-map
(
user/set-leader-key*
nil
org-mode-map
"mrg"
'org-roam-graph
"mrg"
'org-roam-graph
"mri"
'org-roam-node-insert
"mri"
'org-roam-node-insert
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment