我正在尝试编写一个小的 lisp 函数来在单个 org-mode 分支中运行 flyspell。我已将此添加到我的 .emacs 文件中:
(defun flyspell-current-tree()
(interactive)
(org-mark-subtree)
(flyspell-region))
(global-set-key (kbd "S-<f8>") 'flyspell-current-tree)
但是当运行它时,我收到以下错误:
flyspell-current-tree: Wrong number of arguments
有任何想法吗?
最佳答案
您需要提供beg
和 end
至 flyspell-region
使其正常工作。错误来自该错误,而不是实际上来自您的函数。
如果您包括 (point)
和 (mark)
作为 flyspell-region
的参数它会正常工作。
(defun flyspell-current-tree()
(interactive)
(org-mark-subtree)
(flyspell-region (point) (mark)))
关于emacs - 在当前的组织模式树中使用 flyspell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10283393/