how is eglot-server-initialized-hook used? #1001
Answered
by
iambumblehead
iambumblehead
asked this question in
Q&A
-
when the below is added to my emacs config, an error message appears in the emacs.el (add-hook 'eglot-server-initialized-hook (lambda () (mmm-parse-buffer)))
Error in post-command-hook (#[0 "\303\304\301\242\305#\210\300\306�!\205��r\211q\210
?\205��\307\310\311 \")\207" [#<buffer btnIcHashtag.js> (#0) eglot--managed-mode
remove-hook post-command-hook nil buffer-live-p apply eglot--connect eglot--guess-contact] 4]):
(wrong-number-of-arguments (lambda nil (mmm-parse-buffer)) 1) I'm using eglot with mmm-mode and web-mode to syntax-highlight an embedded template. mmm-mode does not begin highlighting the region until |
Beta Was this translation helpful? Give feedback.
Answered by
iambumblehead
Jul 26, 2022
Replies: 1 comment
-
the hook-function must include a parameter and then the error goes away. This is working for me, below. (add-hook 'eglot-server-initialized-hook (lambda (server) (run-at-time 1 nil (lambda() (mmm-parse-buffer))))) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
iambumblehead
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the hook-function must include a parameter and then the error goes away. This is working for me, below.
emacs.el