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 13:33:40 +0200 (CEST)

Aug 1, 2022, 03:03 by incal@dataswamp.org:

> wilnerthomas--- 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?

(setq tb1 '(("bf" "before") ("ll" "little"))
(setq tb2 '(("fm" "from") ("sc" "such"))







reply via email to

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