Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编辑 React.jsx文件,我不想在换行符上缩进,如何禁用它?
.jsx
M-x electric-indent-local-mode如果您使用的是 Emacs-24.4,应该这样做。
M-x electric-indent-local-mode
在 Emacs 25.1.1 中似乎有效的设置electric-layout-mode为-1. 所以在js2-mode-hook添加:
electric-layout-mode
-1
js2-mode-hook
(add-hook 'js2-mode-hook (lambda () (electric-layout-mode -1)))