From: hack writer <GNU@bookhacker.org>
To: <help-gnu-emacs@gnu.org>
Subject: Changing side margins in specific mode changes side margins for all buffers
Date: Tue, 16 Jun 2015 00:29:59 +0200 [thread overview]
Message-ID: <d32d249f33f6cd781c6bebfa023ec69c@bookhacker.org> (raw)
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
next reply other threads:[~2015-06-15 22:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-15 22:29 hack writer [this message]
2015-06-16 21:47 ` Changing side margins in specific mode changes side margins for all buffers hack writer
[not found] ` <mailman.5129.1434491234.904.help-gnu-emacs@gnu.org>
2015-06-16 22:35 ` Stefan Monnier
[not found] <mailman.5065.1434407365.904.help-gnu-emacs@gnu.org>
2015-06-15 23:04 ` Emanuel Berg
2015-06-16 1:13 ` Stefan Monnier
2015-06-17 0:58 ` Emanuel Berg
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=d32d249f33f6cd781c6bebfa023ec69c@bookhacker.org \
--to=gnu@bookhacker.org \
--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.