[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Refill mode for text-mode, but not for org-mode
From: |
Decebal |
Subject: |
Re: Refill mode for text-mode, but not for org-mode |
Date: |
Sat, 25 Oct 2008 00:45:59 -0700 (PDT) |
User-agent: |
G2/1.0 |
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.