English 中文(简体)
在全球各地的Emac公司中的可拆卸汽车
原标题:Disable auto indent globally in Emacs

• 如何在全球或只在某种方式中使自动失效?

我为RubyonRails(ruby, html, js, css)安装了一些包裹。

我要说的是,我对地狱感到不满。

最佳回答

您不妨寻找包含<条码>的改动名称。 (对于在具体可见特性被归类时自动发生的行为,这是共同的原则)。)

在此情况下,M-x>apropos-variable<> >显示有cs-energy-keys。 包含“自行插入应触发重新造林的关键”清单的变量

您可使用M-x,customize-variable 密码> > RET >将这一名单设定为零,或添加(setq cs-energy-keys nil)

有时,使用一种微小的方式来实施电动,以便你能够更容易地把电动转开。 这些办法可能通过<M-xapropos-command<>找到,而且你可能采用一种主要方式,以确保电线性低能残疾,其方式类似:

(add-hook  MAJORMODE-mode-hook  my-MAJORMODE-mode-hook)
(defun my-MAJORMODE-mode-hook ()
  (ELECTRICMODE-mode 0))
问题回答

对于我来说,关于24.x,M-x 概括一下我想要消除的行为。

FWIW, 行为是:RET 须遵守newline,其定义载于simple.el。 除其他外,该指挥系统的行为由电力-indent-mode改变。

在我的案件中(Type式+React through web-mode),RET上引起不一致的变量是web-mode-enable-auto-indentation——必须从t <>tnil中加以比较。

我猜测,一般而言,你可能希望以<代码>tindent的名字核对所有变量。 或者从<代码>RET开始,正如其他人所建议的那样具有约束力。





相关问题
suppress additional braces in emacs electric mode

I started using ruby-electric-mode. I like it except that I am used to closing open brackets myself (the other pairing are still useful to me). How can I make emacs suppress additional brackets when ...

Setting up an emacs environment in windows?

I am currently constrained to a windows dev box and I want to migrate my projects from eclipse to emacs. What are some good references on setting up an emacs dev environment for windows? Anything ...

Emacs Setting which-function-mode

I would like to have which-function-mode on by default when I open up Emacs. I ve added the following lines to my .emacs file. (setq which-func-mode t) (setq which-function-mode t) When I open ...

Enabling go mode for emacs

I don t seem to be able to enable a go mode for emacs. C mode doesn t work without semicolons. The best I have found is the JavaScript mode by Karl Landstrom, since JavaScript also doesn t require ...

Custom Emacs key bindings are not working

The key bindings I ve defined in my .emacs file aren t working. Here s the file: ;init modes (menu-bar-mode 0) (tool-bar-mode 0) (cua-mode) (column-number-mode) (fset perl-mode cperl-mode) (cperl-...

eval during emacs lisp macro expansion

How can I fix the simple macro foo in (elisp)Eval During Expansion? None of the followings work: (defmacro foo1 (a) `(setq (eval ,a) t)) (defmacro foo2 (a) `(setq ,(eval a) t)) (defmacro foo3 (...

Get local cvs comment history when committing file/s in emacs

I often commit files with similar cvs comment but not in a single operation. I would like to able to bring up previous comments I ve used in a previous commit when I am in the process of writing a ...

热门标签