Giter VIP home page Giter VIP logo

Comments (6)

seagle0128 avatar seagle0128 commented on May 14, 2024

这是因为 fun2 中没有任何内容,如果有会自动格式化回去。如果不喜欢可以 M-x aggressive-indent-mode. 我会尝试在代码中配置。

from .emacs.d.

seagle0128 avatar seagle0128 commented on May 14, 2024

已经提交了代码,请测试。Python文件里会默认禁止indent。Close it.

from .emacs.d.

xhh avatar xhh commented on May 14, 2024

@seagle0128 请问怎样全局禁用 aggressive-indent-mode 或者添加在哪些 major mode 下禁用?
在 custom.el 里需要如何设置?

from .emacs.d.

seagle0128 avatar seagle0128 commented on May 14, 2024

@xhh

(with-eval-after-load 'aggressive-indent
  (global-aggressive-indent-mode -1))
(push 'xxx-mode aggressive-indent-excluded-modes)

from .emacs.d.

xhh avatar xhh commented on May 14, 2024

@seagle0128 我将第一种配置放到 custom.el 的最开始, 重启 Emacs 后仍然是默认开启的.
第二种配置会报错 Symbol's value as variable is void: aggressive-indent-excluded-modes.

搜了好久 Google, 对 Emacs 不熟悉, 请见谅.

from .emacs.d.

seagle0128 avatar seagle0128 commented on May 14, 2024

放到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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.