Questions tagged [abbrev]

is for the abbreviation feature of Emacs where a string of characters are expanded to a longer string. Mainly used to reduce typing, `abbrev` are recorded in a table that is shared locally, among buffers of the same major mode, or even globally. Some Emacs features, such as mail, implement their own `abbrev` functionality. Use additional tags when appropriate.

Filter by
Sorted by
Tagged with
15
votes
1answer
5k views

How add company-dabbrev to the Company completion popup?

Setup: GUI version GNU Emacs 25.0.50.1 (x86_64-w64-mingw32) of 2015-07-25 on KAEL Compiled from EmacsW64. , using the latest version of from MELPA Windows 7 x64 bit. Situation: For example, I'm ...
0
votes
1answer
90 views

Completion of sentences stored in a file

I know this question is similar to completion of a sentence rather than word but I ask anyway since I suggest another way of storing what is supposed to be auto-completed. Suppose I stored some ...
3
votes
1answer
520 views

Alternative to abbrev-mode that supports special characters in abbreviations?

I already use abbrev-mode to correct common typos, e.g. I have an abbrev setup for expanding functino to function, etc... I'm currently writing a large document, and I keep stumbling over the ...
1
vote
1answer
530 views

use a single abbrev-table for multiple modes?

I would like for all my text-based modes (org, markdown, message, mu4e-compose, etc) to use a single abbrev-table, and especially, to add new abbrevs to that shared table whenever I'm in one of those ...
10
votes
3answers
2k views

Is it possible to auto-correct spelling “on space”?

I was about to post the question but then I saw it on Stack Overflow while searching for auto-correct possibilities. The linked question has no answers, so I thought it'd have more luck on this site. ...
5
votes
3answers
104 views

mixing automatic abbrev expansions with explicit-only expansions?

Q: can I mix abbrev expansions such that some expand automatically, and some only with an explicit call? When abbrev-mode is enabled, an abbrev expands whenever typing a self-inserting whitespace or ...
5
votes
1answer
90 views

Do not expand a given abbrev when followed by ":"

Let's say I use abbrev to expand eq into equation. Now I want eq to always expand, except when followed by a colon (:). The logic is that in LaTeX I do not want equation identifiers (e.g., eq:xyz) ...
4
votes
4answers
468 views

Prevent abbrev-mode from expanding on underscore

Abbrev-mode seems to think an underscore signals a new word, which is not the case in many programming languages. I want it to expand after spaces, newlines, and tabs; not after underscores. Is there ...
3
votes
1answer
67 views

Prevent abbrev expansion on capitalization

Is there a way to get abbrev expansion on a lower case abbrev but not on its upper case version? E.g.: I have "r" expanding to "are". I'd like "R" to stay "R". I don't necessarily want to get rid of ...
1
vote
0answers
75 views

How to use abbrev with different configuration for each mode?

How can abbrev-mode be enabled per mode (so enable for org-mode and python-mode for example, but not other modes).And each mode use its own set of abbreviations?
5
votes
2answers
253 views

How to expand abbrevs without hitting another extra key?

How can I expand oe to ö immediately after hitting the e without hitting any extra key like space for expansion? Why? For better ergonomics I've remapped some keys like ö, ü and thus must write them ...
3
votes
2answers
466 views

How to use abbrev for words with dollar-sign ($) as prefix?

My setup GNU Emacs GUI (version 24.4.51.1 (x86_64-w64-mingw32) compiled from Harroogan Emacs.) Situation I would like to type a word in PHP-mode, and it will automatically ...
1
vote
1answer
60 views

Different abbrevs for each major mode

The https://www.emacswiki.org/emacs/AbbrevMode says You can have different abbrevs for each mode (cperl, c++, Message); but it doesn't show exactly how, yet that's exactly what I am looking for. So, ...
1
vote
2answers
386 views

abbrev-mode - Expansion with trailing / does not work

I want to have w/ expand to with globally. Defining the abbrev in the usual way works (e.g. typingwith C-x ag w/), and the entry in the abbrev_defs file looks fine - output of M-x list-abbrevs under (...
0
votes
1answer
109 views

Practical emacs abbrev-mode

Following up on Different abbrevs for each major mode, which covers the first step that I found from here. And now, trying to cover to the next step. In summary, the first step, i.e., Different ...
0
votes
1answer
98 views

How to make all abbrev table case sensitive?

I know that I can use (abbrev-table-put c++-mode-abbrev-table :case-fixed t) to make one abbrev table to be case sensitive. But how can I make this default for all abbrev-tables ?
0
votes
1answer
142 views

evil-mode unwanted abbrev expand (setq evil-want-abbrev-expand-on-insert-exit nil)

Upon escaping evil-insert-state, if the cursor is next to a letter/phrase in my abbrev list, it expands despite having (setq evil-want-abbrev-expand-on-insert-exit nil) called before evil-mode. ...