unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Changing side margins in specific mode changes side margins for all buffers
@ 2015-06-15 22:29 hack writer
  2015-06-16 21:47 ` hack writer
       [not found] ` <mailman.5129.1434491234.904.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 6+ messages in thread
From: hack writer @ 2015-06-15 22:29 UTC (permalink / raw)
  To: help-gnu-emacs

Hi everyone,

I use

(add-hook 'window-configuration-change-hook (lambda () (set-window-margins
(car (get-buffer-window-list (current-buffer) nil t)) 29 29)))

to set side margins in a specific emacs mode. But when I open further
buffers, no matter what mode, all buffers use the same side margins. How I
can achieve, that only my specific mode buffers use side margins but all
other buffers not?

(add-hook 'window-configuration-change-hook (lambda () (set-window-margins
(car (get-buffer-window-list (current-buffer) nil t)) 29 29))
'make-it-local)

didn't work.

Regards

hack





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-06-17  0:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.5065.1434407365.904.help-gnu-emacs@gnu.org>
2015-06-15 23:04 ` Changing side margins in specific mode changes side margins for all buffers Emanuel Berg
2015-06-16  1:13 ` Stefan Monnier
2015-06-17  0:58   ` Emanuel Berg
2015-06-15 22:29 hack writer
2015-06-16 21:47 ` hack writer
     [not found] ` <mailman.5129.1434491234.904.help-gnu-emacs@gnu.org>
2015-06-16 22:35   ` Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).