emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Csanyi Pal <csanyipal@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Not Match - When follow Hyperlink
Date: Sun, 26 Apr 2009 12:02:09 +0200	[thread overview]
Message-ID: <87d4azohr2.fsf@debian-asztal.csanyi-pal.info> (raw)

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	other threads:[~2009-04-26 10:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-26 10:02 Csanyi Pal [this message]
2009-04-26 14:31 ` Not Match - When follow Hyperlink Csanyi Pal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d4azohr2.fsf@debian-asztal.csanyi-pal.info \
    --to=csanyipal@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).