[英]Does org-mode solve these 5 `hi-lock` problems?
對於很多參考文件,我相當沉迷於hi-lock
、 text-mode
和非常簡單的 TAB 實用程序的組合。
這是一個簡單的例子。 文件
hi-lock: (("===^^^===" (0 (quote compilation-line-number) t)))
hi-lock: (("http.?://.*" (0 (quote browse-url-button) t)))
===^^^===
===^^^===
Flutter Navigation
Routes and Navigation
Navigator https://api.flutter.dev/flutter/widgets/Navigator-class.html
Named Routes https://docs.flutter.dev/cookbook/navigation/named-routes
===^^^===
etc..
===^^^===
呈現如下。
這很好用。
.txt
文件。 可能有一種方法可以推動它索引其他擴展。 盡管如此,任何其他文件格式(尤其是 LaTeX)的命令都會成為障礙。但也存在幾個問題。
hi-lock
header。hi-lock
的語義是可疑的。 (為什么選擇compilation-line-number
作為分隔線?) org-mode 是否解決了這些問題,同時保持了text-mode
和hi-lock
的優勢?
如果您對 ORG 感到滿意,我特別想看看如何使用 ORG 以同樣(或更好)的方式呈現上面的代碼片段。
有關的:
問題的精神是:
以下是一個補救(工作)解決方案,用於從text-mode
和hi-lock
的組合遷移到org-mode
的路徑。
使用以下.emacs
文件。
(add-to-list 'default-frame-alist '(background-color . "black"))
(add-to-list 'default-frame-alist '(foreground-color . "white"))
(set-frame-font "-*-*-medium-r-normal--24-*-*-*-*-*-*-*")
(setq org-startup-indented t)
(require 'org-superstar)
(add-hook 'org-mode-hook (lambda () (org-superstar-mode 1)))
以下幾行
* Flutter Navigation
** Routes and Navigation
- Navigator https://api.flutter.dev/flutter/widgets/Navigator-class.html
- Named Routes https://docs.flutter.dev/cookbook/navigation/named-routes
* etc..
渲染如下。
盡管這既不解決分隔線也不解決制表符問題。
分隔線很容易,如果它們用於 output(PDF 等)而不是 Emacs 顯示本身。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.