diff --git a/cheatsheet.org b/cheatsheet.org index 3d74c00..f9f452c 100644 --- a/cheatsheet.org +++ b/cheatsheet.org @@ -1,4 +1,5 @@ #+STARTUP: indent +#+TITLE: Editor Cheetsheet * VIM ** deletion @@ -42,9 +43,9 @@ * EMACS ** org-mode -| key | usage | -|-----------+----------| -| C-c \vbar | 创建表格 | -| | | -| | | -| | | +| key | usage | +|-----------+-----------| +| C-c \vbar | 创建表格 | +| C-c C-e | 导出 HTML | +| | | +| | | diff --git a/internet_collections.md b/internet_collections.md index 055c601..280176a 100644 --- a/internet_collections.md +++ b/internet_collections.md @@ -50,6 +50,7 @@ [steven](https://stevenbai.top/) Rust, BlockChain
[用Go语言汇编计算fibonacci数列](https://zhuanlan.zhihu.com/p/138719668)
+[Alynx Zhou](https://sh.alynx.one/)
## YouTube 收集(没有账号, 这就是我的收藏夹) diff --git a/org/Makefile b/org/Makefile new file mode 100644 index 0000000..2a85025 --- /dev/null +++ b/org/Makefile @@ -0,0 +1,11 @@ +EMACS=emacs +ORG_CONFIG_FILE=publish_config.el +EMACS_OPTS=--batch --eval "(load-file \"$(ORG_CONFIG_FILE)\")" -f myweb-publish + +all: html + +html: + @echo "Generating HTML..." + @$(EMACS) $(EMACS_OPTS) + @echo "HTML generation done" + diff --git a/org/cheatsheet.org b/org/cheatsheet.org new file mode 100644 index 0000000..d130147 --- /dev/null +++ b/org/cheatsheet.org @@ -0,0 +1,50 @@ +#+STARTUP: indent + +* VIM +** deletion +| key | usage | +|-------+------------------------| +| x | 删除光标所在处单词 | +| de | 删除到本单词末尾 | +| db | 删除到前一个单词 | +| d$ | 删除光标位置到本行结束 | +| d0 | 删除光标位置到本行开头 | +| u/C-r | 撤销/重做 | +| | | + +** movement +| key | usage | +|---------+----------------------------| +| w | 下一个单词 | +| e | 单词尾 | +| 0/$ | 行首/尾 | +| H/M/L | 当前页面可见顶部/中间/底部 | +| G | 跳转到第几行 | + +** visual +| key | usage | next | +|-----+--------------+------------------------| +| V | 行选择 | | +| C-v | 矩形区域选择 | S-i 插入, esc 批量执行 | +| v | | movement | +| | | | + + +** file/split +| key | usage | +|-------------+--------------| +| :n/:N | 文件之间切换 | +| :b | 切换到文件 | +| C-w h/j/k/l | 切换分屏窗口 | +| ZZ | :wq | + + + +* EMACS +** org-mode +| key | usage | +|-----------+-----------| +| C-c \vbar | 创建表格 | +| C-c C-e | 导出 HTML | +| | | +| | | diff --git a/org/publish_config.el b/org/publish_config.el new file mode 100644 index 0000000..f20d9a6 --- /dev/null +++ b/org/publish_config.el @@ -0,0 +1,21 @@ +;; this file and Makefile from: +;; https://www.cnblogs.com/banjia/archive/2012/09/29/2708966.html +;; CSDN, 阿里云, 这些垃圾都在未授权盗搬, 结果这个东西有些地方都过时了 +;; 能不能有点创新... + +(require 'org) +(setq org-publish-project-alist + '(("org-pages" + :base-directory "." + :base-extension "org" + :publishing-directory "./.." + :recursive t + :publishing-function org-html-export-to-html + ))) + +(defun myweb-publish () + "Publish myweb." + (interactive) + (setq debug-on-error t) + (org-publish-all)) +