Whenever I open an AsciiDoc-file with neotree, I get this error and adoc-mode is not invoked.
File mode specification error: (wrong-type-argument symbolp #[(&optional arg) \301 \210\302�\303\304#\207 [arg neo-global--select-window neo-buffer--execute neo-open-file #[(&rest _) \300\207 [nil] 1]] 4 nil P])
I don't have this problem with any other file types and opening the same AsciiDoc-files with C-x C-f works as expected. If I disable adoc-mode, the error does not occur.
This is how I load adoc-mode:
(use-package adoc-mode
:mode
("\\.adoc\\'" . adoc-mode)
:custom-face
[…]
:hook
(adoc-mode . visual-line-mode))
Whenever I open an AsciiDoc-file with neotree, I get this error and adoc-mode is not invoked.
I don't have this problem with any other file types and opening the same AsciiDoc-files with
C-x C-fworks as expected. If I disable adoc-mode, the error does not occur.This is how I load adoc-mode: