Xref: utzoo comp.windows.x:36961 gnu.emacs.help:2185 comp.text.tex:7712 Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!nstn.ns.ca!uupsi!sunic!dkuug!iesd!iesd.auc.dk!krab From: krab@iesd.auc.dk (Kresten Krab Thorup) Newsgroups: comp.windows.x,gnu.emacs.help,comp.text.tex Subject: Re: xdvi in emacs Message-ID: Date: 29 May 91 13:36:23 GMT References: <1991May16.152416.17303@unibi.uni-bielefeld.de> <1991May21.045416.18056@midway.uchicago.edu> <1991May29.092647.14577@sics.se> Sender: news@iesd.auc.dk Organization: Mathematics and Computer Science, University of Aalborg Lines: 39 In-reply-to: bevemyr@sics.se's message of 29 May 91 09:26:47 GMT >>>>> On 29 May 91 09:26:47 GMT, bevemyr@sics.se (Johan Bevemyr) said: Johan> How about adding this to your .emacs ? Johan> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Johan> ;; Johan> ;; TeX stuff to get the ^c^d to run xdvi on the current dvi file. Johan> ;; Johan> ;; Johan> (setq TeX-mode-hook Johan> '(lambda () Johan> (progn Johan> (local-set-key "\C-c\C-d" 'TeX-xdvi-document) Johan> (defun TeX-define-common-keys (keymap) Johan> (define-key keymap "\C-c\C-k" 'TeX-kill-job) Johan> (define-key keymap "\C-c\C-l" 'TeX-recenter-output-buffer) Johan> (define-key keymap "\C-c\C-q" 'TeX-show-print-queue) Johan> (define-key keymap "\C-c\C-p" 'TeX-print) Johan> (define-key keymap "\C-c\C-d" 'TeX-xdvi-document) Johan> )))) Johan> (defun TeX-xdvi-document () Johan> "Preview the .dvi file made by M-x TeX-region or M-x TeX-buffer." Johan> (interactive) Johan> (TeX-recenter-output-buffer nil) Johan> (send-string "TeX-shell" Johan> (concat "xdvi" " " TeX-zap-file " &\n"))) Is this a request to me ??? If so --- please mail it to auc-tex@iesd.auc.dk --- with a little more explanation... thanks! /Kresten (co-author of auc-tex)