Re: beamer: completion for \usetheme and \usecolortheme

Ralf Angeli <[email protected]>
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
* Reiner Steib (2005-03-03) writes:

> When I added completion for \includegraphics{}, some people complained
> that such a completion function is too slow for them.  Therefore I'd
> like to make the completion customizable:
>
> (defcustom LaTeX-beamer-themes 'LaTeX-beamer-search-themes
[...]
> But when I choose "List" from the value menu in customize, I get:
> "invalid ((nil nil))".  What am I doing wrong?

Does the following definition do what you want?

(defcustom LaTeX-beamer-themes 'LaTeX-beamer-search-themes
  "Presentation themes for the LaTeX beamer package.
It can be a list of themes or a function.  If it is the symbol
`once' search only once per Emacs session."
  :group 'LaTeX-macro
  :type '(choice (const :tag "TeX search" LaTeX-beamer-search-themes)
		 (const :tag "Search once per session" 'once)
		 (function :tag "Other function")
		 (repeat :tag "List"
			 :value ("Antibes" "Bergen" "Szeged" "Warsaw")
			 (string))))

-- 
Ralf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.