emacs-wiki-discuss
[Top][All Lists]
Advanced

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

[emacs-wiki-discuss] Re: Help with my elisp


From: Sacha Chua
Subject: [emacs-wiki-discuss] Re: Help with my elisp
Date: Wed, 30 Mar 2005 20:27:23 +0800
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

Chris Lowis <address@hidden> writes:

> I wrote a little elisp function (almost my first!) to replace a selected 
> name in my planner page with the appropriate bbdb:// link. It works, but 
> I am sure it is a terrible elisp style. Any suggestions on how to 
> improve it ? I hope to learn some good elisp style from you !

Hmmm... Hey, this looks familiar!

For an interactive way to do this (no messing with regions or whatnot),
download my http://sacha.free.net.ph/notebook/emacs/hippie-config.el ,
evaluate it, and set your hippie-expand-try-functions-list to
something like:

(setq hippie-expand-try-functions-list
      '(sacha/try-expand-planner-bbdb-annotation
        sacha/try-expand-planner-name
        try-expand-dabbrev
        try-complete-file-name
        try-expand-dabbrev-all-buffers))

Then type part of someone's name and use M-x hippie-expand to cycle
through possible completions. Bind M-x hippie-expand to something
convenient if you like it. I have it bound to F12.

You also get wiki name expansion, absolutely free!

But wait! There's more! If you type in a date specifier like "+1",
"today", or even "+tue" for next Tuesday, hippie-expand will let you
instantly replace it with a date link! Isn't that so cool?

Get http://sacha.free.net.ph/notebook/emacs/hippie-config.el now!

</infomercial mode>

^_^
-- 
Sacha Chua <address@hidden> - open source geekette
http://sacha.free.net.ph/ - PGP Key ID: 0xE7FDF77C
interests: emacs, gnu/linux, personal information management, CS ed
sachac on irc.freenode.net#emacs . YM: sachachua83




reply via email to

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