help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set margin width locally doesn't work


From: Najja
Subject: Re: set margin width locally doesn't work
Date: Mon, 18 Aug 2008 02:33:02 -0700 (PDT)
User-agent: G2/1.0

I change my configuration to:
(add-hook 'newsticker-treeview-list-mode-hook
          '(lambda nil
             (setq left-margin-width 0)
             (setq right-margin-width 0)) nil t)
(add-hook 'newsticker-start-hook
          '(lambda nil
             (setq left-margin-width 0)
             (setq right-margin-width 0)) nil t)
However, emacs still show two flanking blank margin when I shoot
newsticker after restart.


On Aug 18, 2:30 pm, address@hidden (Pascal J. Bourguignon)
wrote:
> najja <address@hidden> writes:
> > hi there,
>
> > I like having two blank margin flanking the text when I do my daily
> > editing so I add this to my .emacs:
>
> > (setq default-left-margin-width 20)
> > (setq default-right-margin-width 20)
>
> > However, now I want to extend my emacs usage to other fields such as
> > email and rss reading. However, this margin setting will create a
> > blank margin in gnus and newsticker buffer just like in others. I have
> > tried to add the following settings to .emacs.
>
> > (add-hook 'newsticker-treeview-list-mode-hook
> >         (setq left-margin-width 0)
> >         (setq right-margin-width 0)))
>
> > but it doesn't help. Obviously setting margin width doesn't take
> > effect immediately. Is there any way to set margin width to a buffer
> > locally and effectively?
>
> C-h f add-hook RET and read it closely.
>
> --
> __Pascal Bourguignon__                    http://www.informatimago.com/
>
> "What is this talk of "release"?  Klingons do not make software
> "releases".  Our software "escapes" leaving a bloody trail of
> designers and quality assurance people in its wake."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]