问题标签 [js2-mode]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
369 浏览

emacs - 在 js2-mode 中使用 flycheck 进行缩进设置

我在 Emacs 25.2 上启用了 js2-mode 和 flycheck/eslint。

当前按制表符(或换行符)将根据 js2-mode-js-indent-level 缩进。

我希望它是动态的以匹配 flycheck/eslint 设置

有没有办法做到这一点 ?

0 投票
1 回答
288 浏览

javascript - 使用 xref-js2 去定义 emacs evil

我正在尝试从 vim 切换到 emacs。我当然安装了 js2-mode、xref-js2 和 evil。当我尝试使用定义进行定义时,M-.我收到消息:“上一个命令不是邪恶的重复:...”和上一个命令。那么有什么办法(解决方法)来完成这项工作吗?PS 它在 emacs 模式下工作得很好。