[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Abbrevs for the most frequent elisp symbols
From: |
Tom |
Subject: |
Abbrevs for the most frequent elisp symbols |
Date: |
Fri, 19 Dec 2014 19:58:58 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
The other day it occurred to me I could use simple abbrevs for
elisp programming, but defining these manually is tiresome, so
I did some automation.
1. I collected all elisp symbols from the manual
2. Generated abbrevs for those which have multiple parts in the
name from the first letters (e.g. goto-char -> gc)
3. There can be collisions (e.g. gc maps to both goto-char and
garbage-collect), so I collected the usage statistics of all
elisp symbols from the emacs lisp sources and in case of a
collision I used that one which occurs more frequently (in the
above case: goto-char).
The result is an automated abbrev table for elisp symbols based
on frequency. So, for example, you can use wcb for
with-current-buffer, bol for beginning-of-line, mb for
match-beginning, etc.
Here's the list of abbrevs, you can try it in a buffer:
http://pastebin.com/D7Lrg3WA
The idea is trivial, so probably somebody has done something like
this already, but I thought I'd share it in case someone else
finds it useful.
- Abbrevs for the most frequent elisp symbols,
Tom <=
- Re: Abbrevs for the most frequent elisp symbols, Andreas Röhler, 2014/12/25
- Re: Abbrevs for the most frequent elisp symbols, Tom, 2014/12/29
- Re: Abbrevs for the most frequent elisp symbols, Andreas Röhler, 2014/12/29
- Re: Abbrevs for the most frequent elisp symbols, Tom, 2014/12/30
- Re: Abbrevs for the most frequent elisp symbols, Artur Malabarba, 2014/12/30
- Re: Abbrevs for the most frequent elisp symbols, Stefan Monnier, 2014/12/30
- Re: Abbrevs for the most frequent elisp symbols, Tom, 2014/12/31
- Re: Abbrevs for the most frequent elisp symbols, Artur Malabarba, 2014/12/31
- Re: Abbrevs for the most frequent elisp symbols, Robert Thorpe, 2014/12/31
- Re: Abbrevs for the most frequent elisp symbols, Óscar Fuentes, 2014/12/30