help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to disable abbrev-mode in all major modes?


From: Michael Heerdegen
Subject: Re: How to disable abbrev-mode in all major modes?
Date: Sat, 19 Oct 2024 07:52:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Rodrigo Morales <rodrigo-mailing-lists@morales.pe> writes:

> Let me explain my use case: I want abbrev-mode to be disabled in all
> buffers because I want to expand abbreviations by explicitly calling
> the function =expand-abbrev=, but the default behavior is that
> abbreviations are expanded when pressing SPC, punctuations
> (e.g. PERIOD and COMMA) or C-i. After some investigation, I found out
> that abbrev-mode is enabled in message-mode (see next section for
> details on how I found that out).

`message-mode' is an exception: its default setup enables abbrev-mode.
The general default of abbrev-mode is "off".

Specifically for `message-mode' you should, as far as I understand, just
disable `mail-abbrevs-mode' (default: enabled).

Michael




reply via email to

[Prev in Thread] Current Thread [Next in Thread]