emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Not Match - When follow Hyperlink


From: Csanyi Pal
Subject: [Orgmode] Not Match - When follow Hyperlink
Date: Sun, 26 Apr 2009 12:02:09 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Hi,

I have installed on Debian GNU/Linux Lenny
GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11)
 of 2008-11-09 on raven, modified by Debian

In emacs-org mode when follow a Hyperlink I get a Message: 'Not
Match'. 

When the file whereof the Hyperlink points is another file.org, then
the file being opened and get the 'Not Match' message, but when the
file is say PDF or DVI I can't to open that file and get the message
'Not Match'. 

I edited the .emacs file:
---------------------->
(defun define-trivial-mode(mode-prefix file-regexp &optional command)
  (or command (setq command mode-prefix))
  (let ((mode-command (intern (concat mode-prefix "-mode"))))
    (fset mode-command
          `(lambda ()
             (interactive)
             (toggle-read-only t)
             (start-process ,mode-prefix nil
                            ,command (buffer-file-name))
             (kill-buffer (current-buffer))))
    (add-to-list 'auto-mode-alist (cons file-regexp mode-command)))
  )

(define-trivial-mode "gv" "\\.ps$")
(define-trivial-mode "evince" "\\.pdf$")
(define-trivial-mode "gschem" "\\.sch$")

;; dvi
(defun view-dvi ()
  "Use evince to view DVIs."
  (interactive)
   (progn
     (toggle-read-only t)
     (start-process "dvi" nil
                    "evince" (buffer-file-name)))
)
(add-to-list 'auto-mode-alist '("\\.dvi\\'" . view-dvi))
-------------------------------->

Is there a way how to open in emacs org-mode a pdf or dvi file with
Evince? 

Any advices will be appreciated!

-- 
Regards, Paul Csanyi
http://www.freewebs.com/csanyi-pal/index.htm





reply via email to

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