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

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

Djvu mode


From: Camm Maguire
Subject: Djvu mode
Date: Thu, 29 Sep 2011 12:52:24 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Greetings!  Here is my version, GPL'ed of course.  Suggested key
bindings from .emacs:

(global-set-key "\C-x\C-u" 'djvm-find-file)

(load-library "image-mode")
(load-library "/home/camm/djvm2.elc")
(load-library "/home/camm/djvm1-org.elc")


(defun djvm-dired-open nil
  (interactive)
  (djvm-find-file (dired-get-filename)))
(require 'dired)
(define-key dired-mode-map (kbd "\C-u") 'djvm-dired-open)

(setq org-capture-templates
      '(("h" "Bibtex Heading" entry (function org-bibtex-find-entry) 
;(file+headline "~/tex/scirel/notes.org" "Reference notes")
"* %:author (%:year): %:title\n\t%a 
[[djvm:~/refs/bibtex/%:key::1::0::0::0::0][p. 1]] 
[[http://adsabs.harvard.edu/abs/%:key][adsabs]]\n\
:PROPERTIES:\n\
:Custom_ID: %:key\n\
:END:\n%?\n\
** Notes\n\
*** End notes")
        ("d" "Djvu notes" entry (function org-djvm-find-entry) "** %U 
%?\n%:quote\t%a")))

Alas, I have only limited time for polishing.  But many improvements
remain.  I'd be most interested if you had time to play with it and
let me know what you think.

Take care,
-- 
Camm Maguire                                        address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah

Attachment: djvm2.el
Description: djvu mode base

Attachment: djvm1-org.el
Description: org support


reply via email to

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