Longman Dictionary of Contemporary English 5th Edition(LDOCE) with emacs

  • Install ftp.sra.co.jp/pub/misc/freepwing/freepwing-1.6.1.tar.bz2
    • never install emerge app-text/freepwing
emerge app-emacs/lookup app-dicts/eblook
cp /dvd/ldoce5.data /tmp/
cd /tmp
wget http://www.geocities.jp/taka_depo/ldoce5-fpw-20120906.zip
unzip ldoce5-fpw-20120906.zip
cd ldoce5-fpw-20120906

nano ldoce5-fpw.conf

$ldoce5dir = "/tmp/ldoce5.data/";
...
$font = '/usr/share/fonts/corefonts/arial.ttf';
...
$sound_type = 0; # 0: disable, 1: sound(MP3)
fpwmake package
cp ldoce5-fpw.zip ~/Dicts/
cd ~/Dicts/
unzip ldoce5-fpw.zip


emacs ~/.emacs.el

(require 'lookup)
(autoload 'lookup "lookup" nil t)        
(autoload 'lookup-pattern "lookup" nil t) 
(global-set-key "\C-cL" 'lookup-pattern)  
;(define-key ctl-x-map "l" 'lookup)
(define-key ctl-x-map "y" 'lookup-region)
(define-key ctl-x-map "\C-y" 'lookup-pattern)
(setq lookup-search-agents
      '((ndeb 
	 ;"/usr/local/dict/epwing"
	 "~/Dicts/LDOCE5"
	 )
        (ndspell)))