From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Adding a sublist to a list on startup Date: Mon, 13 Dec 2010 13:17:41 -0800 Message-ID: <08AABBED9C6F4D2A9644BD0B620685CD@us.oracle.com> References: <87zks9o3bw.fsf@guruji.demimonde> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1292275156 11236 80.91.229.12 (13 Dec 2010 21:19:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Dec 2010 21:19:16 +0000 (UTC) To: "'Tyler Smith'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 13 22:19:11 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PSFnb-0001JB-H9 for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Dec 2010 22:19:11 +0100 Original-Received: from localhost ([127.0.0.1]:58304 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PSFna-0008A5-QF for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Dec 2010 16:19:10 -0500 Original-Received: from [140.186.70.92] (port=38786 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PSFnC-000875-Px for help-gnu-emacs@gnu.org; Mon, 13 Dec 2010 16:18:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PSFn9-0006jH-VQ for help-gnu-emacs@gnu.org; Mon, 13 Dec 2010 16:18:46 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:36012) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PSFn9-0006j1-OT for help-gnu-emacs@gnu.org; Mon, 13 Dec 2010 16:18:43 -0500 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oBDLIctH006563 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 13 Dec 2010 21:18:40 GMT Original-Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oBDLITog018506; Mon, 13 Dec 2010 21:18:36 GMT Original-Received: from abhmt003.oracle.com by acsmt354.oracle.com with ESMTP id 870636821292275061; Mon, 13 Dec 2010 13:17:41 -0800 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 13 Dec 2010 13:17:41 -0800 X-Mailer: Microsoft Office Outlook 11 In-reply-to: <87zks9o3bw.fsf@guruji.demimonde> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 Thread-Index: Acua/7mEKv8w5GoTSem3UwPQWnfh0AACyUFw X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77468 Archived-At: > (defun my-LaTeX-hook () > (push '("choices" . LaTeX-insert-choice) LaTeX-item-list) > (push '("parts" . LaTeX-insert-part) LaTeX-item-list) > (push '("questions" . LaTeX-insert-question) LaTeX-item-list) > (push '("choices" LaTeX-env-item) LaTeX-environment-list) > (push '("questions" LaTeX-env-item) LaTeX-environment-list) > (push '("parts" LaTeX-env-item) LaTeX-environment-list)) > > (add-hook 'LaTeX-mode-hook 'my-LaTeX-hook) > > However, the last three push commands aren't doing what I expect. I haven't used LaTeX in years (unfortunately), but is it perhaps because the last three don't have a dot (.)? I also wonder why you don't just use Customize to customize `LaTeX-item-list' (I'm assuming that it is a user option). That's what Customize is for: it type-checks changes you make.