最近尝试从spacemacs转到自己写init.el,用submodule管理包。添加org-mode时遇到了一些问题。
org-mode看README需要编译后使用,make doc
的时候报错:
/Library/Developer/CommandLineTools/usr/bin/make -C doc info
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
makeinfo --no-split org.texi -o org
org.texi:6: warning: unrecognized encoding name `UTF-8'.
org.texi:833: Unknown command `arrow'.
org.texi:833: Misplaced {.
org.texi:833: Misplaced }.
org.texi:833: Unknown command `arrow'.
org.texi:833: Misplaced {.
org.texi:833: Misplaced }.
org.texi:844: Unknown command `arrow'.
org.texi:844: Misplaced {.
org.texi:844: Misplaced }.
org.texi:2646: Unknown command `arrow'.
org.texi:2646: Misplaced {.
org.texi:2646: Misplaced }.
org.texi:2648: Unknown command `arrow'.
org.texi:2648: Misplaced {.
org.texi:2648: Misplaced }.
org.texi:3534: Unknown command `arrow'.
org.texi:3534: Misplaced {.
org.texi:3534: Misplaced }.
org.texi:3534: Unknown command `arrow'.
org.texi:3534: Misplaced {.
org.texi:3534: Misplaced }.
makeinfo: Removing output file `org' due to errors; use --force to preserve.
make[1]: *** [org] Error 1
make: *** [info] Error 2
看了下https://orgmode.org/worg/dev/org-build-system.html,需要的组件应该都装了,不太确定版本有没有问题。不知道有没有大佬在mac上编译过org-mode,遇到过同样的问题。
另外我直接把org-mode下的lisp文件夹加到load-path里了,然后(require 'org-mode),但是看describe-package,用的还是内置的org-mode。正确替代内置的org-mode的方法是什么呢?