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

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

Re: Setting up abbrev


From: carlmarcos
Subject: Re: Setting up abbrev
Date: Mon, 1 Aug 2022 14:54:48 +0200 (CEST)


-- 
 Sent with Tutanota, enjoy secure & ad-free emails. 



Aug 1, 2022, 11:42 by incal@dataswamp.org:

> carlmarcos--- via Users list for the GNU Emacs text editor wrote:
>
>>>> Have seen discussions about abbrev. How does it work
>>>> exactly, and how could I set it up to test it?
>>>>
>>>
>>> Try for example:
>>>
>>> ;;; -*- lexical-binding: t -*-
>>>
>>> ;; (kill-all-abbrevs)
>>> (let ((write '(
>>>  ("lex"    ";;; -*- lexical-binding: t -*-")
>>>  ("sld"    "sdl")
>>>  ("wierd"  "weird")
>>>  )))
>>>  (define-abbrev-table 'global-abbrev-table write) )
>>>
>>
>> Suppose I have a number of tables and want to introduce them
>> to `global-abbrev-table', how could I do it?
>>
>
> The way it's done above ...
>
>> (setq tb1 '(("bf" "before") ("ll" "little"))
>> (setq tb2 '(("fm" "from") ("sc" "such"))
>>
>
> Very bad examples what to do with abbrev. Disencouraged!
>
Get past the discouragement.  Because when pushing things by categorisation 
there is a pressing demand for more than a single rudimentary table.



reply via email to

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