From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Cubizolles Subject: Loading several latex classes for ox-latex Date: Wed, 10 Jul 2013 15:28:37 +0200 Message-ID: <87wqoy4k8q.fsf@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwuS8-0002Ho-TT for emacs-orgmode@gnu.org; Wed, 10 Jul 2013 09:29:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UwuS7-00066I-A3 for emacs-orgmode@gnu.org; Wed, 10 Jul 2013 09:29:04 -0400 Received: from plane.gmane.org ([80.91.229.3]:56959) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwuS7-000662-3r for emacs-orgmode@gnu.org; Wed, 10 Jul 2013 09:29:03 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UwuS5-00073F-Hk for emacs-orgmode@gnu.org; Wed, 10 Jul 2013 15:29:01 +0200 Received: from 37.160.38.211 ([37.160.38.211]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Jul 2013 15:29:01 +0200 Received: from j.cubizolles by 37.160.38.211 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Jul 2013 15:29:01 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org How can I run several add-to-list after a given package is loaded ? I could of course do multiples: (eval-after-load 'package_name '(add-to-list 'element 'list)) but I'm sure there's a more elegant way. I tried the following: --8<---------------cut here---------------start------------->8--- (eval-after-load 'ox-latex (progn '(add-to-list 'org-latex-classes '("mpsi_beamer" "\\documentclass{mpsi_beamer}\n [NO-DEFAULT-PACKAGES]" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") )) '(add-to-list 'org-latex-classes '("mpsi" "\\documentclass[cours,Version,colonne]{mpsi}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") )) )) --8<---------------cut here---------------end--------------->8--- but only the second one (mpsi) is loaded. Julien.