Я устанавливаю пакеты yasnippet и yasnippet-snippets, но когда я редактировал в c-mode, меню yasnippet появилось, но фрагменты автоматически не загружались. Мне нужно вручную указывать код каждый раз. Я думаю, что это должно быть проблемой конфигурации, но когда я пытаюсь использовать «загрузить все» в меню, появляется ошибка:
Debugger entered--Lisp error: (void-function record)
record(yas--table "antlr-mode" #s(hash-table size 65 test equal rehash-size 1.5 rehash-threshold 0.8 data ( ...)) #s(hash-table size 65 test equal rehash-size 1.5 rehash-threshold 0.8 data ( ...)) nil (keymap))
yas--table-get-create(antlr-mode)
yas-define-snippets(antlr-mode (("target" "<target name=\"${1:compile}\" ${2:other}>\n $0\n</target>" "target" nil nil nil "e:/baidu_cloud/new_home/.emacs.d/elpa/yasnippet-snippets-20190422.1416/snippets/antlr-mode/target" nil nil) ("prop" "<property name=\"${1:name}\" value=\"${2:value}\" />\n$0" "property" nil nil nil "e:/baidu_cloud/new_home/.emacs.d/elpa/yasnippet-snippets-20190422.1416/snippets/antlr-mode/property" nil nil) ("proj" "<project name=\"${1:test}\" default=\"${2:compile}\" basedir=\"${3:.}\">\n\n$0\n</project>" "project" nil nil nil "e:/baidu_cloud/new_home/.emacs.d/elpa/yasnippet-snippets-20190422.1416/snippets/antlr-mode/project" nil nil)))
yas--load-directory-2("e:/baidu_cloud/new_home/.emacs.d/elpa/yasnippet-snippets-20190422.1416/snippets/antlr-mode" antlr-mode)
yas--load-directory-1("e:/baidu_cloud/new_home/.emacs.d/elpa/yasnippet-snippets-20190422.1416/snippets/antlr-mode" antlr-mode)
apply(yas--load-directory-1 ("e:/baidu_cloud/new_home/.emacs.d/elpa/yasnippet-snippets-20190422.1416/snippets/antlr-mode" antlr-mode))
#[128 "\302\300\303\301\"\"\207" [yas--load-directory-1 ("e:/baidu_cloud/new_home/.emacs.d/elpa/yasnippet-snippets-20190422.1416/snippets/antlr-mode" antlr-mode) apply append] 6 "\n\n(fn &rest ARGS2)"]()
yas/load-directory("~/.emacs.d/elpa/yasnippet-snippets-20190422.1416/snippets/")
eval-buffer(#<buffer *load*-583469> nil "e:/baidu_cloud/new_home/emacs/myautocomplete.el" nil t) ; Reading at buffer position 3100
load-with-code-conversion("e:/baidu_cloud/new_home/emacs/myautocomplete.el" "e:/baidu_cloud/new_home/emacs/myautocomplete.el" nil t)
load("myautocomplete.el" nil t t)
eval-buffer(#<buffer *load*> nil "e:/baidu_cloud/new_home/.emacs" nil t) ; Reading at buffer position 1429
load-with-code-conversion("e:/baidu_cloud/new_home/.emacs" "e:/baidu_cloud/new_home/.emacs" t t)
load("~/.emacs" t t)
#[0 "\205\266