From: Decebal <CLDWesterhof@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Refill mode for text-mode, but not for org-mode
Date: Sat, 25 Oct 2008 00:45:59 -0700 (PDT) [thread overview]
Message-ID: <bc714013-69e4-4317-acee-e56c12cf9354@y29g2000hsf.googlegroups.com> (raw)
In-Reply-To: mailman.2022.1224873381.25473.help-gnu-emacs@gnu.org
On Oct 24, 8:36 pm, bojohan+n...@dd.chalmers.se (Johan Bockgård)
wrote:
> > 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))))
This works partly (as explained in another thread). I want a little
more and I have:
(add-hook 'text-mode-hook (lambda ()
(unless (memq major-mode '(org-mode))
(refill-mode 1)
(setq-default default-justification 'full)
)
)
)
This does not set refill-mode for org-mode, but it does set default-
justification for org-mode. A bit strange.
next prev parent reply other threads:[~2008-10-25 7:45 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
[not found] ` <mailman.2022.1224873381.25473.help-gnu-emacs@gnu.org>
2008-10-25 7:45 ` Decebal [this message]
-- 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=bc714013-69e4-4317-acee-e56c12cf9354@y29g2000hsf.googlegroups.com \
--to=cldwesterhof@gmail.com \
--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.