在Emacs中,如何在css模式下关闭abbrevs?
如何在css模式下关闭abbrev模式?我的.emacs中有这段代码,但它不起作用在Emacs中,如何在css模式下关闭abbrevs?,css,emacs,Css,Emacs,如何在css模式下关闭abbrev模式?我的.emacs中有这段代码,但它不起作用 (add-hook 'css-mode-hook (lambda () (abbrev-mode 0))) 从手册: The mode command should accept one optional argument. If called interactively with no prefix argument, it should toggle the mode (i.e., enable i
(add-hook 'css-mode-hook (lambda () (abbrev-mode 0)))
从手册:
The mode command should accept one optional argument. If called
interactively with no prefix argument, it should toggle the mode
(i.e., enable if it is disabled, and disable if it is enabled). If
called interactively with a prefix argument, it should enable the
mode if the argument is positive and disable it otherwise.
因此:
还引用了elisp信息
:
Disabling a minor mode in a mode hook is a little uglier:
(add-hook 'text-mode-hook (lambda () (foo-mode -1)))
However, this is not very commonly done.
Disabling a minor mode in a mode hook is a little uglier:
(add-hook 'text-mode-hook (lambda () (foo-mode -1)))
However, this is not very commonly done.