From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.help Subject: Re: Refill mode for text-mode, but not for org-mode Date: Fri, 24 Oct 2008 20:36:03 +0200 Message-ID: References: <55ca2c0c-90ed-4b57-9ff6-01b43886e844@c60g2000hsf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1224873409 20661 80.91.229.12 (24 Oct 2008 18:36:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Oct 2008 18:36:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 24 20:37:50 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 1KtRXg-0006Se-Qb for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Oct 2008 20:37:49 +0200 Original-Received: from localhost ([127.0.0.1]:43796 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KtRWa-0003tX-To for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Oct 2008 14:36:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KtRWF-0003qv-7J for help-gnu-emacs@gnu.org; Fri, 24 Oct 2008 14:36:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KtRWD-0003pO-S6 for help-gnu-emacs@gnu.org; Fri, 24 Oct 2008 14:36:18 -0400 Original-Received: from [199.232.76.173] (port=36442 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KtRWD-0003pJ-MI for help-gnu-emacs@gnu.org; Fri, 24 Oct 2008 14:36:17 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:46898 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KtRWD-0007Er-Cd for help-gnu-emacs@gnu.org; Fri, 24 Oct 2008 14:36:17 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KtRW8-0006Bg-1E for help-gnu-emacs@gnu.org; Fri, 24 Oct 2008 18:36:12 +0000 Original-Received: from remote1.student.chalmers.se ([129.16.29.79]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Oct 2008 18:36:12 +0000 Original-Received: from bojohan+news by remote1.student.chalmers.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Oct 2008 18:36:12 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 16 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: remote1.student.chalmers.se Mail-Copies-To: never User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:0KAKilR5sDQaUb5K0ILJQJ+rSK4= 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:59137 Archived-At: Decebal writes: > I have the following in my .emacs: > (add-hook 'text-mode-hook > (lambda () (refill-mode 1) > ) > > This sets refill-mode for text-mode -what I want-, but also for org- > mode -what I do not want-. How can I set it for text-mode without also > setting it for org-mode? (add-hook 'text-mode-hook (lambda () ;; List exceptions here (unless (memq major-mode '(org-mode)) (refill-mode 1))))