help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: dict in Emacs


From: Richard G Riley
Subject: Re: dict in Emacs
Date: Tue, 08 Apr 2008 06:11:14 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux)

Evans Winner <thorne@timbral.net> writes:

> Can anyone recommend a good system for looking up the
> dictionary definition of a word at point?  I found a dict.el
> on EmacsWiki and it more or less works, but I found after
> looking up a few words that it had left a trail of over a
> thousand buffers open -- and I'm not sure how to debug it.
> It also gives me results from, eg., English to Arabic
> dictionaries.  I am thinking, there is probably a more
> convenient solution, and someone here is liable to know what
> it is.

I use dictem on debian.

http://sourceforge.net/projects/dictem

Here is the relevant stuff from my .emacs

,----
| (setq dictem-server "localhost")
| (require 'dictem)
| (dictem-initialize)
| (define-key mode-specific-map [?s] 'dictem-run-search)
| 
| 
| (define-key dictem-mode-map [tab] 'dictem-next-link)
| (define-key dictem-mode-map [(backtab)] 'dictem-previous-link)
| 
|                                       ; For creating hyperlinks on database 
names
|                                       ; and found matches.
|                                       ; Click on them with mouse-2
| (add-hook 'dictem-postprocess-match-hook
|         'dictem-postprocess-match)
| 
|                                       ; For highlighting the separator 
between the definitions found.
|                                       ; This also creates hyperlink on 
database names.
| (add-hook 'dictem-postprocess-definition-hook 
|         'dictem-postprocess-definition-separator)
| 
|                                       ; For creating hyperlinks in dictem 
buffer
|                                       ; that contains definitions.
| (add-hook 'dictem-postprocess-definition-hook 
|         'dictem-postprocess-definition-hyperlinks)
| 
|                                       ; For creating hyperlinks in dictem 
buffer
|                                       ; that contains information about a 
database.
| (add-hook 'dictem-postprocess-show-info-hook
|         'dictem-postprocess-definition-hyperlinks)
`----






reply via email to

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