On Mon, Jan 22, 2007 at 10:43:29AM +0000, Phillip Lord wrote:
> >>>>> "S" == Suresh  <[EMAIL PROTECTED]> writes:
> 
>   S> I am using muse as a personal wiki, and I take notes on pdf
>   S> documents that I link to like [[x.pdf]]
> 
>   S> When I click on the link, I get an error that says emacs could
>   S> not find external program gv. I assume that means somewhere,
>   S> emacs is set to look for ghostview when trying to open the pdf
>   S> link, but I cannot find out where.
> 
>   S> Is there a variable I can set in .emacs that will make emacs look
>   S> for AcroRd32.exe instead of gv ?
> 
> 
> I always bind this stuff to "start", rather than an specific
> executable. That way, it opens with what ever your windows association
> is. 

You can also do something like this:

; Opening other kinds of files
; http://www.emacswiki.org/cgi-bin/wiki/TrivialMode
; by Cyprian Laskowski
; Modified to make buffer read only and to suppress output of command
(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))))
    (add-to-list 'auto-mode-alist (cons file-regexp mode-command)))
  )

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

Cheers
Stéfan

_______________________________________________
Muse-el-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/muse-el-discuss

Reply via email to