这可能是可能的,但找不到参考。 如何通过我的.emacs文件为外部链接定义不同的颜色?
答案 0 :(得分:1)
一个古老的问题,但由于它会在搜索中弹出... Org 9的系统经过了改进,可以使用org-link-parameters
变量来定义链接。通常,您可以通过功能“ org-set-link-parameters”修改此内容,请参见org文档或此处的示例:https://kitchingroup.cheme.cmu.edu/blog/2016/11/04/New-link-features-in-org-9/
答案 1 :(得分:1)
以下代码将显示内部链接(以“ file:
开头的链接)为绿松石色,而不是蓝色:
(defface org-link-internal
'((((class color) (background light)) (:foreground "turquoise1" :underline t))
(((class color) (background dark)) (:foreground "turquoise1" :underline t))
(t (:underline t)))
"Face for internal links."
:group 'org-faces)
(org-link-set-parameters "file"
:face 'org-link-internal)
注释:
M-x org-mode-restart
才能看到组织文件中的更改; defface
),因此,如果要更改已定义的面孔,请更改其名称或重新启动Emacs; M-x list-faces-display
查看可用的面孔; M-x list-colors-display
选择字体的可用颜色;