From: bojohan+news@dd.chalmers.se (Johan Bockgård)
To: help-gnu-emacs@gnu.org
Subject: Re: Refill mode for text-mode, but not for org-mode
Date: Fri, 24 Oct 2008 20:36:03 +0200 [thread overview]
Message-ID: <yoijk5bxrgbw.fsf@remote1.student.chalmers.se> (raw)
In-Reply-To: 55ca2c0c-90ed-4b57-9ff6-01b43886e844@c60g2000hsf.googlegroups.com
Decebal <CLDWesterhof@gmail.com> 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))))
next prev parent reply other threads:[~2008-10-24 18:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-24 14:18 Refill mode for text-mode, but not for org-mode Decebal
2008-10-24 14:50 ` Bastien
2008-10-24 18:36 ` Johan Bockgård [this message]
[not found] ` <mailman.2022.1224873381.25473.help-gnu-emacs@gnu.org>
2008-10-25 7:45 ` Decebal
-- strict thread matches above, loose matches on Subject: below --
2008-10-24 20:21 roodwriter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yoijk5bxrgbw.fsf@remote1.student.chalmers.se \
--to=bojohan+news@dd.chalmers.se \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.