[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Abbrevs for the most frequent elisp symbols
From: |
Robert Thorpe |
Subject: |
Re: Abbrevs for the most frequent elisp symbols |
Date: |
Mon, 29 Dec 2014 13:09:29 +0000 |
There are the dynamic abbrevs facilities, M-\ and C-M-\. They search
through the open buffers looking for completion candidates. They're
included by default in hippie-expand's completers. Personally, I prefer
that style of completion to abbrev.
You could use a similar strategy with normal abbrev though. Load up a
set of Elisp files that are typical of your personal usage. You could
then use the code in dabbrev-expand or dabbrev-completion to find the
completions you want. You could wrap that in a bit of Elisp and run it
once to generate a table, then decide on the abbrevs manually or by
taking a prefix.
Martin mentions that the Emacs sources themselves contain some code
that's frowned upon these days. That's true, there are many old parts
of Emacs. The parts that are new are a good guide though. There are
some peculiarities even there though, Emacs code doesn't use certain
features to avoid loading them when Emacs starts, easymenu for example.
BR,
Robert Thorpe
Message not available
Re: Abbrevs for the most frequent elisp symbols, Marcin Borkowski, 2014/12/29
Re: Abbrevs for the most frequent elisp symbols, Emanuel Berg, 2014/12/28
Re: Abbrevs for the most frequent elisp symbols, Stefan Monnier, 2014/12/29
Re: Abbrevs for the most frequent elisp symbols, Marcin Borkowski, 2014/12/29
Re: Abbrevs for the most frequent elisp symbols, Stefan Monnier, 2014/12/29
Re: Abbrevs for the most frequent elisp symbols, Tom, 2014/12/29