emacs-devel
[Top][All Lists]
Advanced

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

Re: Emacs setup assistants


From: Juri Linkov
Subject: Re: Emacs setup assistants
Date: Wed, 19 May 2004 12:59:09 +0300
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Per Abrahamsen <address@hidden> writes:
> The idea is to skip info altogether, and write an texinfo reader.
> This way, we could extend the texinfo format with tags needed for
> wizards (or saints, or assistants).  

Why not use something more Lispish?

(defsaint enable-multifile-documents
          (checkbox :format "%v Enable multifile documents." (not TeX-master))
  "When @LaTeX{} documents grow large, they are often split up in
multiple files.  One file is a "master" file, which includes a number
of nested files.  When formatting the document, you need to run
@code{latex} on the master file.  If you enable multifile support, AUC
@TeX{} will automatically run @code{latex} on the master file, even if
you invoke @kbd{C-c C-c} from one of the nested files.  In order to do
this, AUC TeX will prompt you for a name of a master file first time
you edit a file, and insert the name in a comment at the end of the
file."
  (require 'tex)
  (setq saint-on-next-function
       (lambda (customize-save-variable 'TeX-master 
                (not (widget-value enable-multifile-parsing))
                "Saint"))))

But then it looks very much like defcustom.

So there is a more general question: why not extend Customize
for a guided tour through options?

-- 
Juri Linkov
http://www.jurta.org/emacs/





reply via email to

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