emacs - 为 NeoTree 缓冲区重新绑定(bind) Spacemacs 中的键

标签 emacs spacemacs

我想在 Spacemacs 的 NeoTree 缓冲区中重新绑定(bind)移动键。查看 dotspacemacs/user-config 中的其他键绑定(bind),这应该有效:

(with-eval-after-load 'neotree
  (evil-define-key 'normal neotree-mode-map (kbd "i") 'neotree-previous-line)
  (evil-define-key 'normal neotree-mode-map (kbd "k") 'neotree-next-line))

但据我所知它没有任何作用。应该怎样做呢?我不介意普通的 Emacs 解决方案,但我更感兴趣 Spacemacs 如何绑定(bind)按键。谢谢...

最佳答案

这个答案感谢bmag在 Github 上:

(with-eval-after-load 'neotree
  (evil-define-key 'evilified neotree-mode-map (kbd "i") 'neotree-previous-line)
  (evil-define-key 'evilified neotree-mode-map (kbd "k") 'neotree-next-line))

关于emacs - 为 NeoTree 缓冲区重新绑定(bind) Spacemacs 中的键,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41314759/

相关文章:

Emacs dired+tramp,UTF8 错误的文件名

file - 如何在emacs中快速打开文件?

emacs - 在 Org 模式下如何调用代码块从其他 org 文件进行评估?

emacs - 在 emacs 中从当前位置删除到行首?

emacs - 包安装错误类型参数错误

Emacs、unicode、xterm 鼠标转义序列和宽终端

emacs - 有没有办法在 Spacemacs 中使用 Rmarkdown?

emacs - 卸载Spacemacs

spacemacs - 如何在 Spacemacs 中进行项目范围的查找和替换?

emacs - emacs/spacemacs 是否支持嵌套在 Rust 宏中的 C++ 模式?