Skip to content

Commit c42908b

Browse files
committed
增加 justfile 模式
1 parent 62811f5 commit c42908b

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

README.org

+24
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
- [[#vue][Vue]]
5353
- [[#markdown][Markdown]]
5454
- [[#yaml][YAML]]
55+
- [[#just-file][Just File]]
5556
- [[#项目工程][项目工程]]
5657
- [[#org][Org]]
5758
- [[#org-base][Org base]]
@@ -1361,6 +1362,18 @@ embark 是另一个比较神奇的工具。Emacs 基本的操作流程是先输
13611362
)
13621363
#+end_src
13631364

1365+
** Just File
1366+
#+begin_src emacs-lisp
1367+
(use-package just-mode
1368+
:ensure t
1369+
)
1370+
(use-package justl
1371+
:ensure t
1372+
:bind
1373+
(:map project-keymap
1374+
("r" . justl-exec-recipe-in-dir))
1375+
)
1376+
#+end_src
13641377
* 项目工程
13651378

13661379
#+begin_src emacs-lisp
@@ -1609,6 +1622,8 @@ Org-mode 相关的配置。
16091622
(setq org-habit-show-habits t)
16101623
(setq org-habit-following-days 2)
16111624
(setq org-habit-preceding-days 7)
1625+
(setq org-habit-graph-column 60)
1626+
(setq org-agenda-align-tags-to-column 60)
16121627
)
16131628
#+end_src
16141629
** Org-roam
@@ -1635,6 +1650,15 @@ Org-mode 相关的配置。
16351650
:hook
16361651
(org-mode . org-modern-mode)
16371652
(org-agenda-finalize . org-modern-agenda)
1653+
:config
1654+
(setq org-modern-todo-faces
1655+
'(
1656+
("NEXT" :background "red"
1657+
:foreground "white")
1658+
("SOMEDAY" :background "gray"
1659+
:foreground "black")
1660+
))
1661+
16381662
)
16391663
#+end_src
16401664
** Ox-hugo

init.el

+21
Original file line numberDiff line numberDiff line change
@@ -920,6 +920,16 @@
920920
:config
921921
(setq-default format-all-formatters '(("YAML" (prettier)))))
922922

923+
(use-package just-mode
924+
:ensure t
925+
)
926+
(use-package justl
927+
:ensure t
928+
:bind
929+
(:map project-keymap
930+
("r" . justl-exec-recipe-in-dir))
931+
)
932+
923933
(use-package magit
924934
:ensure t
925935
:bind
@@ -1151,6 +1161,8 @@
11511161
(setq org-habit-show-habits t)
11521162
(setq org-habit-following-days 2)
11531163
(setq org-habit-preceding-days 7)
1164+
(setq org-habit-graph-column 60)
1165+
(setq org-agenda-align-tags-to-column 60)
11541166
)
11551167

11561168
(use-package org-roam
@@ -1173,6 +1185,15 @@
11731185
:hook
11741186
(org-mode . org-modern-mode)
11751187
(org-agenda-finalize . org-modern-agenda)
1188+
:config
1189+
(setq org-modern-todo-faces
1190+
'(
1191+
("NEXT" :background "red"
1192+
:foreground "white")
1193+
("SOMEDAY" :background "gray"
1194+
:foreground "black")
1195+
))
1196+
11761197
)
11771198

11781199
(use-package ox-hugo

justfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 帮助
2+
help:
3+
echo "help in here"

0 commit comments

Comments
 (0)