Comments (6)
这是因为 fun2 中没有任何内容,如果有会自动格式化回去。如果不喜欢可以 M-x aggressive-indent-mode
. 我会尝试在代码中配置。
from .emacs.d.
已经提交了代码,请测试。Python文件里会默认禁止indent。Close it.
from .emacs.d.
@seagle0128 请问怎样全局禁用 aggressive-indent-mode 或者添加在哪些 major mode 下禁用?
在 custom.el 里需要如何设置?
from .emacs.d.
(with-eval-after-load 'aggressive-indent
(global-aggressive-indent-mode -1))
(push 'xxx-mode aggressive-indent-excluded-modes)
from .emacs.d.
@seagle0128 我将第一种配置放到 custom.el 的最开始, 重启 Emacs 后仍然是默认开启的.
第二种配置会报错 Symbol's value as variable is void: aggressive-indent-excluded-modes
.
搜了好久 Google, 对 Emacs 不熟悉, 请见谅.
from .emacs.d.
放到custom-post.el
。请阅读 README。
(with-eval-after-load 'aggressive-indent
(global-aggressive-indent-mode -1)
(push 'xxx-mode aggressive-indent-excluded-modes))
from .emacs.d.
Related Issues (20)
- [Bug] Blank screen on fresh install HOT 7
- [Bug] Find File is very slow HOT 7
- Is dotfiles a dependency of Centaur Emacs?
- Installation process isn't working [Bug] HOT 1
- Installation error [Question] HOT 7
- [Bug] nerd-icons-octicon: Unable to find icon with name ‘key’ in icon set ‘octicon’
- [Bug] Table text cannot be centered, vertical bars cannot be aligned HOT 1
- Supports the opening of large files HOT 12
- Nerd-icon.el url: raw.githubusercontent [Bug] HOT 4
- [Bug] the window size is always maximized at startup HOT 2
- [Feature Request] Maybe 'init-package' should before 'init-custom' HOT 1
- [Feature Request] How could I config PYIM input method with pyim-wbdict? HOT 1
- [Feature Request] How to install package from git, when package is not in melpa HOT 3
- Buffer visualization HOT 2
- 请问怎么关闭透明背景 , 或者调整透明度? HOT 2
- 每次打开文件都提示: Warning (emacs): ‘:events-buffer-scrollback-size’ deprecated. Use ‘events-buffer-config’. HOT 8
- 使用默认主题时, corfu 补全弹出框中选中的高亮行与其它行几乎无法区分 HOT 1
- 怎么打开 flymake 的实时错误检查? HOT 2
- [Bug] my-dashboard-insert-copyright: Symbol’s value as variable is void: dashboard-set-footer
- [Bug] failed to install HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from .emacs.d.