From: David <dpleydel@univ-fcomte.fr>
To: help-gnu-emacs@gnu.org
Subject: Re: Changing default dvi viewer.
Date: Fri, 8 Feb 2008 14:39:26 +0100 [thread overview]
Message-ID: <20080208133925.GA10741@univ-fcomte.fr> (raw)
In-Reply-To: <3E44A43B-0C05-4E52-9439-55E28230FEE0@Web.DE>
> Again, think of using a customised texdoc as viewer not only for TeX
> documents, but also TXT, PS, PDF, DVI ??? *one* tool name instead of
> four. And once your taste changes, you won't need to customise AUCTeX
> again!
OK, so finally I get it!! I have added these lines to my .bashrc
## Set defaults for texdoc
export TEXDOCVIEW_html="mozilla %s"
export TEXDOCVIEW_pdf="xpdf %s"
export TEXDOCVIEW_ps="gv %s"
export TEXDOCVIEW_dvi="kdvi %s"
export TEXDOCVIEW_txt="emacs %s"
## Create alias for texdoc. I wanted "view" as my alias name, but that
## alrady existed. So I thought about "vyew" instead. This made me
## think "vitual sheep". So the alias name is now "vs".
alias vs='texdoc -v'
Now at the shell prompt I can just type
funkyPrompt$ vs someFileName.dvi &
or
funkyPrompt$ vs someFileName.ps &
or
funkyPrompt$ vs someFileName.pdf &
and the right program is chosen for the job. Pretty cool. There are a
few points I still need to straighten out.
1) C-c C-c doesn't refer to texdoc. I'll have to find how to redirect
it. No no no, I got it!!! I just need to edit the entries in "tex
output view style" from the customise autex library (and hit the
"state" button). Horrah! Ah now the funny thing is I changed one of
the lines in the raised button customisation buffer to "%(o?)texdoc
%dS %d ## %(o?)xdvi %dS %d" but the environmental variable
TEXDOCVIEW_dvi as specified in .bashrc is not being used and a default
xdvi has been used instead. Doooh! Of course .bashrc has no effect on
emacs behaviour, I should think about .emacs instead right. Now with
(setenv "TEXDOCVIEW_dvi" "kdvi %s") added to .emacs C-c C-c is calling
texdoc which redirects it to kdvi! Wola wola wola!
2) M-x *eshell* doesn't appear to read my .bashrc so the aliases and
environmental variables don't work in that shell. Well of course this
is the emacs shell and not a bash shell, but I cannot find online how
to set aliases for the eshell.
3) With M-x shell, say I forget the & I cannot use C-z followed by bg
to background the process as I could in M-x term. For a reader this
isn't a big issue, but for other applications it might be. So ...
3a) How do I get something like a terminal's C-z within *shell*?
3b) Is it possible to edit the alias I have in .bashrc such that the &
is added automatically - I tried a few things but nothing I came up
with worked.
cheers
Dave
next prev parent reply other threads:[~2008-02-08 13:39 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20080205170541.675151BC01F@ufc.univ-fcomte.fr>
2008-02-07 11:28 ` Changing default dvi viewer David
2008-02-07 10:51 ` Peter Dyballa
2008-02-07 15:30 ` David
2008-02-07 15:00 ` Peter Dyballa
2008-02-07 16:26 ` David
2008-02-07 18:32 ` Peter Dyballa
2008-02-08 13:39 ` David [this message]
2008-02-08 13:50 ` Peter Dyballa
2008-02-08 14:09 ` David
2008-02-08 14:52 ` Peter Dyballa
2008-02-08 14:11 ` Thierry Volpiatto
2008-02-08 14:15 ` David
2008-02-08 14:50 ` David
2008-02-08 15:37 ` Peter Dyballa
2008-02-08 17:07 ` David
2008-02-08 14:20 ` Thierry Volpiatto
2008-02-08 14:21 ` David
2008-02-08 15:07 ` Thierry Volpiatto
[not found] ` <mailman.7120.1202409178.18990.help-gnu-emacs@gnu.org>
2008-02-08 20:18 ` Ralf Angeli
2008-02-09 9:38 ` Peter Dyballa
[not found] ` <mailman.7202.1202549941.18990.help-gnu-emacs@gnu.org>
2008-02-09 10:03 ` Ralf Angeli
2008-02-07 10:56 ` Tassilo Horn
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080208133925.GA10741@univ-fcomte.fr \
--to=dpleydel@univ-fcomte.fr \
--cc=help-gnu-emacs@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.
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).