禁用flycheck模式和prettify-symbols模式

时间:2019-05-27 06:57:18

标签: emacs

我的emacs.d来自purcell/emacs.d: An Emacs configuration bundle with batteries included的克隆

默认启用prettify-symbols-modeflycheck-mode

搜索custom.el,但未找到相关设置。

如何从我的init.el中禁用它们?

1 个答案:

答案 0 :(得分:1)

(prettify-symbols-mode -1)

C-h f prettify-symbols-mode

prettify-symbols-mode is an interactive compiled Lisp function in
‘prog-mode.el’.

(prettify-symbols-mode &optional ARG)

Toggle Prettify Symbols mode.
With a prefix argument ARG, enable Prettify Symbols mode if ARG is
positive, and disable it otherwise.  If called from Lisp, enable
the mode if ARG is omitted or nil.

When Prettify Symbols mode and font-locking are enabled, symbols are
prettified (displayed as composed characters) according to the rules
in ‘prettify-symbols-alist’ (which see), which are locally defined
by major modes supporting prettifying.  To add further customizations
for a given major mode, you can modify ‘prettify-symbols-alist’ thus:

  (add-hook 'emacs-lisp-mode-hook
            (lambda ()
              (push '("<=" . ?≤) prettify-symbols-alist)))

You can enable this mode locally in desired buffers, or use
‘global-prettify-symbols-mode’ to enable it for all modes that
support it.

这几乎适用于所有次要模式。

相关问题