From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Where is .emacs in Linux? Date: Sat, 09 May 2009 10:15:26 +0300 Message-ID: <831vqyd9wx.fsf@gnu.org> References: <23443988.post@talk.nabble.com> <20090508115500.GA1074@muc.de> <87zldnqvkd.fsf@bornier.net> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1241853366 3646 80.91.229.12 (9 May 2009 07:16:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 May 2009 07:16:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 09 09:15:57 2009 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.50) id 1M2gmp-00028W-E2 for geh-help-gnu-emacs@m.gmane.org; Sat, 09 May 2009 09:15:56 +0200 Original-Received: from localhost ([127.0.0.1]:36817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M2gmo-0000ia-22 for geh-help-gnu-emacs@m.gmane.org; Sat, 09 May 2009 03:15:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M2gmR-0000hU-Cu for help-gnu-emacs@gnu.org; Sat, 09 May 2009 03:15:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M2gmQ-0000go-Np for help-gnu-emacs@gnu.org; Sat, 09 May 2009 03:15:30 -0400 Original-Received: from [199.232.76.173] (port=42823 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M2gmQ-0000gh-K7 for help-gnu-emacs@gnu.org; Sat, 09 May 2009 03:15:30 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:6861) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M2gmQ-0003Hx-6L for help-gnu-emacs@gnu.org; Sat, 09 May 2009 03:15:30 -0400 Original-Received: from mtaout2.012.net.il ([84.95.2.4]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M2gmP-0004Me-Ec for help-gnu-emacs@gnu.org; Sat, 09 May 2009 03:15:29 -0400 Original-Received: from conversion-daemon.i_mtaout2.012.net.il by i_mtaout2.012.net.il (HyperSendmail v2004.12) id <0KJD008007UEUT00@i_mtaout2.012.net.il> for help-gnu-emacs@gnu.org; Sat, 09 May 2009 10:15:27 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.73.80]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KJD00M1R85Q2D20@i_mtaout2.012.net.il> for help-gnu-emacs@gnu.org; Sat, 09 May 2009 10:15:27 +0300 (IDT) In-reply-to: <87zldnqvkd.fsf@bornier.net> X-012-Sender: halo1@inter.net.il X-Detected-Operating-System: by mx20.gnu.org: Solaris 9.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:64268 Archived-At: > From: Jean Magnan de Bornier > Date: Fri, 08 May 2009 20:49:22 +0200 > > Eli Zaretskii wrote : > > | And don't forget to save it (C-x C-s) after editing, and then restart > | Emacs for the new/changed settings to take effect. > > Restart emacs? > > Why not just let emacs evaluate the file? Evaluating .emacs will work for simple customizations of options not related to display, but will not work in general. That's because Emacs loads .emacs early in its startup sequence, and then continues the startup sequence using the customizations found on .emacs. In addition, .emacs can define several hook functions used by Emacs as part of its startup. You cannot reproduce the exact effect of all this by simply evaluating the file after the startup sequence is finished. So, in general, it's safer to restart.