执行这个的原因是配置是直接复制的,那想试试第二步是不是没做好(因为 mac 没在手边,用 linux 复现了下):
[WebsocketBridge] Server has start.
[WebsocketBridge] Application dictionary-overlay has start.
You can run the command ‘dictionary-overlay-start’ with M-x d-sta RET
[WebsocketBridge] Application dictionary-overlay has start.
websocket-send: Cannot send message to a closed websocket: #s(websocket-frame text "[\"data\",[\"render\",\";; This buffer is for text that is not saved, and for Lisp evaluation.\\n;; To create a file, visit it with C-x C-f and enter text in its buffer.\\n\\n\",146,\"*scratch*\"]]" nil t)
然后没找到 dictionary-overlay-toggle-start 命令,我用的 dictionary-overlay-restart, 之后 C-c d
websocket-bridge-call-buffer: Symbol’s value as variable is void: websocket-bridge-client-dictionary-overlay
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not open requirements file: [Errno 2] No such file or directory: '/home/someone/.emacs.d/straight/build/dictionary-overlay/requirements.txt'
(add-to-list 'load-path "~/.emacs.d/el-get/dictionary-overlay/")
(require 'dictionary-overlay)
(setq dictionary-overlay-inihibit-keymap nil)
(setq dictionary-overlay-just-unknown-words nil)
(setq dictionary-overlay-auto-jump-after
'(mark-word-known ; recommended
;; mark-word-unknown ; not recommended
popweb-dict-say-word ;I add this but not working
render-buffer ; opinionated, but turn it on, why not
))