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

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

Re: Anyone knows how to do dvd/book collection management in Emacs?


From: Joost Kremers
Subject: Re: Anyone knows how to do dvd/book collection management in Emacs?
Date: 2 Apr 2007 21:03:30 GMT
User-agent: slrn/0.9.8.1 (Linux)

CHENG Gao wrote:
[ebib]
> And I have a problem now.
> I dont like Customize, so instead I add my entry type for movie in my
> init.el like this:
>
> ,----
>| (require 'ebib)
>| (global-set-key "\C-ce" 'ebib)
>| (add-to-list 'ebib-entry-types '(movie                                       
>      
>|      (name director actors actress producer year dvd-type audio subtitle 
>time) 
>|      (rating comment))) 
> `----
>
> Here I have to use require instead of autoload for purpose of altering
> value of ebib-entry-types.

yes, because the variable ebib-entry-types is only defined when ebib.el is
loaded.

> Then I create from scratch my dvd file by:
> M-x ebib RET
> o ~/.emacs.d/dvd.bib RET
> a -- input my first entry "the-merchant-of-venice:2004" (Movie The
> Merchant of Venice is released in 2004. I use name:year as key).
> And since default type is "article", I press "e" on type, and I can not
> change it to "movie". TAB shows no "movie" in list.
>
> So instead of adding my type directly into ebib.el, what should I do?
> Anything I did is wrong?

well, ebib-entry-types is unfortunately not a variable you can set
directly, because two other variables have to be set on the basis of
it. therefore, it's better to use the customisation interface.

however, if you really don't want to, you could do it by putting the
following in .emacs (after loading ebib.el):

(ebib-set-entry-types-hash 'ebib-entry-types
                           (cons '(movie
                                   (name director actors actress producer year 
dvd-type audio subtitle time) 
                                   (rating comment))
                                 ebib-entry-types))

> Thanks for your good job. Though I have no idea about bibtex, I think
> ebib is cool and useful.

thanks. :-)

-- 
Joost Kremers                                      joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)


reply via email to

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