emacs: disable electric-quote-mode

I thought it was inserting quote pairs, but what it actually does is
try to be smart about how fancy the quotes are, which I do not like.
If I type `example' in an Elisp comment, this is exactly what I want
to see.
This commit is contained in:
Protesilaos 2026-09-01 06:02:32 +03:00
parent fcd246c3d4
commit 05b70f3438
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA
2 changed files with 5 additions and 4 deletions

View file

@ -37,8 +37,8 @@
;;;; The "electric" behaviour
(prot-emacs-configure
(electric-pair-mode 1)
(electric-quote-mode 1)
(electric-indent-mode 1)
(electric-quote-mode -1)
(defun prot/electric-indent-mode-disable ()
"Disable `electric-indent-local-mode'."

View file

@ -9159,9 +9159,10 @@ Emacs describes as "electric" any behaviour that tries to be smart
about how it handles a given event.
The ~electric-pair-mode~, for example, automatically inserts a closing
parenthesis when the user inputs an opening parenthesis. Same idea
with quotes, performed by the ~electric-quote-mode~. The
parenthesis when the user inputs an opening parenthesis. The
~electric-indent-mode~ tries to be smart about how to indent a line.
Same idea for ~electric-quote-mode~, which takes ordinary quotes and
makes them look curly/prettier---though this one I do not want.
I like this functionality in general, except for ~electric-indennt-mode~
in Org files. The reason is that it keeps the indentation in line with
@ -9177,8 +9178,8 @@ use-case I have for it..
;;;; The "electric" behaviour
(prot-emacs-configure
(electric-pair-mode 1)
(electric-quote-mode 1)
(electric-indent-mode 1)
(electric-quote-mode -1)
(defun prot/electric-indent-mode-disable ()
"Disable `electric-indent-local-mode'."