From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.help Subject: Re: Take effect on changes in .emacs without closing emacs Date: Tue, 15 Apr 2008 03:12:51 +0300 Organization: SunSITE.dk - Supporting Open source Message-ID: <877if0ou0s.fsf@kobe.laptop> References: <9caa44ec-01a0-4638-a4ea-d819525400a5@w5g2000prd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1208220160 21875 80.91.229.12 (15 Apr 2008 00:42:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Apr 2008 00:42:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 15 02:43:16 2008 connect(): Connection refused 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 1JlZGS-0004Vf-CH for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Apr 2008 02:43:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JlZFo-0008Hw-2c for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Apr 2008 20:42:32 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!goblin1!goblin2!goblin.stu.neva.ru!news.net.uni-c.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) Cancel-Lock: sha1:EwRyySDef3yL4hbNtVpr74RRYo8= Original-Lines: 28 Original-NNTP-Posting-Host: 77.49.237.36 Original-X-Trace: news.sunsite.dk DXC=@9HZIT]omm; IE=Lc_\oXE4YSB=nbEKnk; f2; 89Q0P2=2L^Mj7bH?lJH1Tkj<^8N_5Y`W4g4oQf@@>G5XC8 Original-X-Complaints-To: staff@sunsite.dk Original-Xref: shelby.stanford.edu gnu.emacs.help:157929 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:53294 Archived-At: On Mon, 14 Apr 2008 16:51:45 -0700 (PDT), istillshine@gmail.com wrote: > How to see the results of my change of .emacs without exiting emacs? > Thanks. Most changes can be evaluated right there, in the buffer that you have opened to edit your ~/.emacs file. If you have changed the default value of a variable: (setq-default diff-switches "-u") You can move past the closing parenthesis, and type `C-x C-e'. This will evaluate the expression, and you are done. If you are adding a new hook to text-mode (defun keramida-text-mode-hook () (setq fill-colum 72)) (add-hook 'text-mode-hook 'keramida-text-mode-hook) You can mark the two expressions, and type `M-x eval-region'. The expressions in the current region will be evaluated, and immediatelly apply to any new text-mode buffers that you open. There _are_ a few exceptions, i.e. some of the changes to `customize' stuff are trickier to evaluate directly in the buffer that edits your ~/.emacs file. If you are making this sort of change, I'm sure some of the experienced Emacs hackers who hang out here can help :)