Skip to content
Search Interface for Emacs
Emacs Lisp Ruby Other
Branch: master
Clone or download
ikazuhiro Merge pull request #15 from yasuhirokimura/support-destdir
Support $(DESTDIR) in lisp/Makefile.am
Latest commit c4f4986 Feb 9, 2018

README.md

Lookup for Emacs

Lookup is an integrated user interface for various dictionaries. You can search various on-line and off-line dictionaries simultaneously with lookup.

Installation

Download the archive and place the contents of lisp folder into your site-lisp. You will need `cl-lib' if your Emacs is 24.2 or earlier. You do not need any additional library if Emacs is 24.3 or later.

When proper installer is completed, it should be installed via following command.

% ./configure --with-emacs=emacs \
              --with-lispdir=/your/home/emacs/lisp \
              --infodir=/your/home/emacs/info
% make install

Usage

Following is an example of the settings of ~/.emacs.d/init.el file.

(define-key ctl-x-map "l" 'lookup)
(define-key ctl-x-map "y" 'lookup-region)
(define-key ctl-x-map "\C-y" 'lookup-pattern)

(load "lookup-autoloads")
(setq lookup-search-agents
      '((ndeb "/usr/local/dict/epwing")
        (ndspell)))

(You may also create ~/.emacs.d/lookup/ directory and put init.el file for various settings.)

M-x lookup will start Lookup. M-x lookup-region will search the text in the region. If you M-x lookup-pattern, you will be asekd for search words. For details, please refer the documentation.

Supported Dictionaries

EPWING/EBXA dictionaries

EPWING, EBXA, etc are supported with help of eblook tools.

Text/XML dictionaries

Textual and XML-based dictionaries are also supported. For faster search, suffix array tool called sary is used. With sary, you can use BTONIC or Lingvo DSL file as dictionary.

Search engines

Google and Wikipedia searches are supported with opensearch interface.

Misc dictionaries

Dictd and some other dictionaries are also supported.

You can’t perform that action at this time.