From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rusi Newsgroups: gmane.emacs.help Subject: Re: Different options for different modes? Date: Thu, 29 Mar 2012 06:00:45 -0700 (PDT) Organization: http://groups.google.com Message-ID: <863e1697-9d6d-4b4d-a9b2-4b05f9e2f498@pg6g2000pbb.googlegroups.com> References: <8c415ae4-eedc-41e2-9993-0c2fbd8b3573@t3g2000vbe.googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1333398639 4489 80.91.229.3 (2 Apr 2012 20:30:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Apr 2012 20:30:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 02 22:30:39 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SEnte-00051o-Nk for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Apr 2012 22:30:38 +0200 Original-Received: from localhost ([::1]:42752 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEnte-0005Vt-39 for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Apr 2012 16:30:38 -0400 Original-Path: usenet.stanford.edu!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!xmission!news.bbs-scene.org!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!pg6g2000pbb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 10 Original-NNTP-Posting-Host: 116.74.129.10 Original-X-Trace: posting.google.com 1333026045 20337 127.0.0.1 (29 Mar 2012 13:00:45 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 29 Mar 2012 13:00:45 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: pg6g2000pbb.googlegroups.com; posting-host=116.74.129.10; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20100101 Firefox/10.0.2,gzip(gfe) X-Received-Bytes: 1399 Original-Xref: usenet.stanford.edu gnu.emacs.help:191851 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84266 Archived-At: Stefan Monnier wrote: > The general approach is to use something like > > (add-hook 'MAJOR-MODE-hook > (lambda () > (set (make-local-variable 'VAR) VAL))) I wonder when this is used and when this: (eval-after-load 'MAJOR_MODE (setq VAR VAL))