禁用 flycheck-mode 和 prettify-symbols-mode

Disable flycheck-mode and prettify-symbols-mode

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

它默认启用 prettify-symbols-modeflycheck-mode

搜索 custom.el 没有找到相关设置。

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

(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.

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