コードが正しいです。 - モードはグローバルであり、ある
(define-minor-mode show-paren-mode
"Toggle visualization of matching parens (Show Paren mode).
With a prefix argument ARG, enable Show Paren mode if ARG is
positive, and disable it otherwise. If called from Lisp, enable
the mode if ARG is omitted or nil.
Show Paren mode is a global minor mode. When enabled, any
matching parenthesis is highlighted in `show-paren-style' after
`show-paren-delay' seconds of Emacs idle time."
:global t :group 'paren-showing
...)
:global t
ここで重要なことです。しかし、あなたは*scratch*
バッファのメジャーモードは(ほとんど無関係である)emacs-lisp-mode
から派生し、モードの定義がlisp-interaction-mode
であるという事実を考慮する必要がありますメジャーモードに関係なくすべてのバッファーで有効になります。
ありがとうございます。それは働いている! –