* Inserting letter for words with initial letter sequence
@ 2022-08-11 23:19 carlmarcos--- via Users list for the GNU Emacs text editor
2022-08-12 6:09 ` Jean Louis
[not found] ` <YvXun3appATcL+LL@protected.localdomain-N9FfPG---3-2>
0 siblings, 2 replies; 3+ messages in thread
From: carlmarcos--- via Users list for the GNU Emacs text editor @ 2022-08-11 23:19 UTC (permalink / raw)
To: Help Gnu Emacs
I would like to introduce the letter `k' for words with initial `cog', `col', `com', `con', `cor', `coun', and `cum' using an elisp command defined in my init file.
That is
"cognize" changed to "knize"
"collect" to "klect"
"corrupt" to "krupt"
"cumulatively" to "kulatively".
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Inserting letter for words with initial letter sequence
2022-08-11 23:19 Inserting letter for words with initial letter sequence carlmarcos--- via Users list for the GNU Emacs text editor
@ 2022-08-12 6:09 ` Jean Louis
[not found] ` <YvXun3appATcL+LL@protected.localdomain-N9FfPG---3-2>
1 sibling, 0 replies; 3+ messages in thread
From: Jean Louis @ 2022-08-12 6:09 UTC (permalink / raw)
To: carlmarcos; +Cc: Help Gnu Emacs
* carlmarcos--- via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> [2022-08-12 02:21]:
>
> I would like to introduce the letter `k' for words with initial `cog', `col', `com', `con', `cor', `coun', and `cum' using an elisp command defined in my init file.
> That is
>
> "cognize" changed to "knize"
> "collect" to "klect"
> "corrupt" to "krupt"
> "cumulatively" to "kulatively".
Then just use Emacs' facility for abbrevs, and turn on
abbrev-mode, write "cognize⬛" and put cursor after word and use
`C-x a g' to add the abbrev interactively.
Programmatically, if you are to add it to `global-abbrev-table'
then you do following:
(define-abbrev global-abbrev-table "cognize" "knize")
(define-abbrev global-abbrev-table "collect" "klect")
and do not forget to save abbrevs:
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Inserting letter for words with initial letter sequence
[not found] ` <YvXun3appATcL+LL@protected.localdomain-N9FfPG---3-2>
@ 2022-08-12 6:21 ` carlmarcos--- via Users list for the GNU Emacs text editor
0 siblings, 0 replies; 3+ messages in thread
From: carlmarcos--- via Users list for the GNU Emacs text editor @ 2022-08-12 6:21 UTC (permalink / raw)
To: Jean Louis; +Cc: Help Gnu Emacs
Aug 12, 2022, 06:09 by bugs@gnu.support:
> * carlmarcos--- via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> [2022-08-12 02:21]:
>
>>
>> I would like to introduce the letter `k' for words with initial `cog', `col', `com', `con', `cor', `coun', and `cum' using an elisp command defined in my init file.
>> That is
>>
>> "cognize" changed to "knize"
>> "collect" to "klect"
>> "corrupt" to "krupt"
>> "cumulatively" to "kulatively".
>>
>
> Then just use Emacs' facility for abbrevs, and turn on
> abbrev-mode, write "cognize⬛" and put cursor after word and use
> `C-x a g' to add the abbrev interactively.
>
> Programmatically, if you are to add it to `global-abbrev-table'
> then you do following:
>
> (define-abbrev global-abbrev-table "cognize" "knize")
> (define-abbrev global-abbrev-table "collect" "klect")
>
> and do not forget to save abbrevs:
>
I cannot do all these defines for every word in the dictionary. I need some way to look at a word
and decide whether `cog' exists and a replacement done to `k', and so on.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-08-12 6:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-11 23:19 Inserting letter for words with initial letter sequence carlmarcos--- via Users list for the GNU Emacs text editor
2022-08-12 6:09 ` Jean Louis
[not found] ` <YvXun3appATcL+LL@protected.localdomain-N9FfPG---3-2>
2022-08-12 6:21 ` carlmarcos--- via Users list for the GNU Emacs text editor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).