sacha chua :: enterprise 2.0 consultant, storyteller, geek » elispI help people connect through blogs, wikis, other Web 2.0 tools. I'm also writing a book about Emacs.Emacs BBDB: Prioritize exact matches- September 29, 2006 I often include people's names in my notes on other people, such as when I'm tracking who introduced me to whom. The following code modifies BBDB's behavior to put exact matches for name, company, or network address above matches for notes. (defun sachabbdb (string elidep) "Display all entries in the BBDB matching the regexp STRING in either the name(s), company, network address, or notes. Prioritize non-note matches." (interactive (list (bbdb-search-prompt "Search records %m regexp:...http://sachachua.com/wp/2006/09/29/emacs-bbdb-prioritize-exact-matches/ Emacs: BBDB rapid serial visualization- September 28, 2006 And because it's good to quickly flash through records once in a while to refresh my memory... (defvar sachabbdb-rapid-serial-visualization-delay 1 "Number of seconds to wait between records. Set to 0 to wait for input.") (defun sachabbdb-rapid-serial-visualization () "Breeze through everyone's name and notes." (interactive) (window-configuration-to-register a) ;; Copy the currently visible records (let ((records bbdb-records) (default-size (face-attribute 'default...http://sachachua.com/wp/2006/09/28/emacs-bbdb-rapid-serial-visualization/ Emacs: Show only people whom I haven't pinged since- September 28, 2006 One of the things I want in a contact management system is a quick way to find out who I haven't pinged in a while. The following code filters currently-displayed contacts to show who I might want to get back in touch with. Call it from a BBDB window and specify the date (could be 2006.01.01 for annual, -7 for the last seven days, etc.). This works incredibly well with the following hacks: Emacs: Keep track of messages sent BBDB pinging code I should write a small book about how to build a..http://sachachua.com/wp/2006/09/28/emacs-show-only-people-whom-i-havent-pinged-since/ |