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

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

Re: Abbrev for shorthand purposes


From: Jean Louis
Subject: Re: Abbrev for shorthand purposes
Date: Thu, 11 Aug 2022 06:43:14 +0300
User-agent: Mutt/+ () (2022-06-11)

* uzibalqa <uzibalqa@proton.me> [2022-08-11 00:43]:
> > Purpose of abbrevs was not to use them programmatically, but to have
> > it handy to quickly add them while writing text.
> 
> I am using them programmatically because I want to implement a specific
> scheme for short writing.

You can implement it rather by thinking and using Emacs built-in
functions. You are inserting them into parenthesis, but you can insert them into
parenthesises by using built in Emacs functions as well, without
worries.

Your file will be saved. You may reuse the information.

> Yes I can complete the word "sentimental", but am struggling on how the word 
> can then be
> changed to  "s--l".

For that you do following: 

- write s--l

- put cursor after s--l

- Press C-2 C-x a g

  This is because C-2 or C-u 2 is equivalent of going 2 words back, as
  s--l probably looks as 2 words to Emacs because of dashes.

- insert "sentimental"

- when you write sentimental it will expand into s--l

That method is faster.


-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



reply via email to

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