auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] Re: Want help in the latest auctex


From: Ralf Angeli
Subject: Re: [AUCTeX] Re: Want help in the latest auctex
Date: Wed, 06 Aug 2008 23:07:12 +0200

Please keep the mailing list copied.

* Sethuraman (2008-08-06) writes:

>> (eval-after-load "tex"
>>  '(add-to-list 'TeX-command-list '("Devnag" "devnag %s" TeX-run-command t t
>>                                  :help "Run devnag") t))
>>
>> AUCTeX will ask you if you want to save the buffer before running the
>> command if the variable `TeX-save-query' is non-nil.
>
> I entered the lines above "(eval-after  ... etc. in my .xemacs/init.el
> file and it runs Devnag under ctrl-c ctrl-c. However it still runs as
> "devnag myfile.dn" and not as "devnag myfile". (I found that my .emacs
> file loads .xemacs/init.el and so I made the changes there.)

Sorry, I forgot one thing.  You have to add "dn" to the list of file
extensions AUCTeX recognizes.  Here is an extension of the above code
which does this.  (Alternatively you could have customized the variable
`TeX-file-extensions' with `M-x customize-variable <RET>
TeX-file-extensions <RET>'.)

(eval-after-load "tex"
 '(progn
    (add-to-list 'TeX-command-list '("Devnag" "devnag %s" TeX-run-command t t
                                     :help "Run devnag") t)
    (add-to-list 'TeX-file-extensions "dn" t)))

By the way, I don't consider it a good idea to load XEmacs-specific
customizations in Emacs.  It would be safer to transfer the
customizations you are interested in from .xemacs/init.el to .emacs and
stop loading the former in the latter.

> Also, I do not know how to set the variable 'Tex-save-query' as
> non-nil. Can I add a line in init.el to do this, so that it will ask
> to save an edited file before running devnag on it?

M-x customize-variable <RET> TeX-save-query <RET>

-- 
Ralf




reply via email to

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