【发布时间】:2017-02-06 16:44:01
【问题描述】:
我最近从 Vim 转换为 Evil 模式,我正在努力让环境更加熟悉。我想念的一件事是 Vim 中的 find 命令。我试图通过将find-file 命令包装在一个函数中来在 Emacs 中设置类似的东西。到目前为止,我有这个:
(defun find nil
"Shadow vim find command, with helm."
(interactive)
(find-file))
当我运行命令时,它对我大喊,Wrong number of arguments {doc string} 0 我尝试添加参数但没有成功。真正令人困惑的一点是,我以同样的方式隐藏了一个 helm 函数并且它起作用了,就像这样:
(defun buflist nil
"List buffers in helm."
(interactive)
(helm-buffers-list))
有什么不同?我该如何解决这个问题?
【问题讨论】: