org mode C-c C-,报 warning...


#1

Warning (org): Please update the entries of `org-structure-template-alist’.

In Org 9.2 the format was changed from something like

("s" "#+BEGIN_SRC ?\n#+END_SRC")

to something like

("s" . "src")

Please refer to the documentation of `org-structure-template-alist’.

The following entries must be updated:

((“n” “#+BEGIN_NOTES\n?\n#+END_NOTES”))

===

MAC OS / DOOM EMACS develop

org-version: 9.2


#2

#3

需要更改为:

(add-to-list 'org-structure-template-alist '("n" . "NOTES"))

然后 C-c C-,n ,变量文档如下:

org-structure-template-alist is a variable defined in ‘org.el’. Its value is shown below.

Documentation: An alist of keys and block types. ‘org-insert-structure-template’ will display a menu with this list of templates to choose from. The block type is inserted, with “#+BEGIN_” and “#+END_” added automatically.

The menu keys are defined by the car of each entry in this alist. If two entries have the keys “a” and “aa” respectively, the former will be inserted by typing “a TAB/RET/SPC” and the latter will be inserted by typing “aa”. If an entry with the key “aab” is later added, it can be inserted by typing “ab”.

If loaded, Org Tempo also uses ‘org-structure-template-alist’. A block can be inserted by pressing TAB after the string “<KEY”.

You can customize this variable.

This variable was introduced, or its default value was changed, in version 9.2 of the Org package that is part of Emacs 27.1.

Value: ((“a” . “export ascii”) (“c” . “center”) (“C” . “comment”) (“e” . “example”) (“E” . “export”) (“h” . “export html”) (“l” . “export latex”) (“q” . “quote”) (“s” . “src”) (“v” . “verse”))


#4

#5

以上方法皆不管用,错误依旧~


#6

己经被 hlissner@github 修复了。