From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: window alignment at startup
Date: Fri, 12 Jul 2013 11:05:20 +0200 [thread overview]
Message-ID: <87y59cdu7j.fsf@VLAN-3434.student.uu.se> (raw)
In-Reply-To: mailman.763.1373491420.12400.help-gnu-emacs@gnu.org
"Mickey Ferguson" <...> writes:
> (defun align-window ()
> "fix window positioning"
> (interactive)
> (set-frame-position (selected-frame)
Does `set-frame-position' only work in X? Because it doesn't seem
to do anything for me.
I have the following to get a right margin of one char, in a Linux
VT:
;; left margin = 1 char; no right margin
(add-hook 'window-configuration-change-hook
(lambda ()
(set-window-margins
(car (get-buffer-window-list (current-buffer)
nil ; do consider minibuffer
t )) ; consider all frames
1 0 )))
However, it is not optimal as
1) I'd like it for the minibuffer/echo area, to
2) I'd like it for the status bar, to, although I managed to setup
this somewhere else
3) Sometimes, for popup frames (for example, help) it doesn't
"kick in" until I hit `M-x', which is annoying. (I don't think
this is because of Help's View mode, because sometimes in some
other popup context - without View - I get the same behaviour -
although that's a possibility, for sure - either the hook doesn't
get fired, or it resets right after that).
But in most cases, it works OK.
As I always run Emacs in a tmux window, perhaps it is much easier
to fill the right margin with an extra char (a whitespace), in my
tmux setup? I don't know if you use tmux as well, otherwise that
could be worth exterminating.
--
Emanuel Berg - programmer (hire me! CV below)
computer projects: http://user.it.uu.se/~embe8573
internet activity: http://home.student.uu.se/embe8573
next parent reply other threads:[~2013-07-12 9:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.763.1373491420.12400.help-gnu-emacs@gnu.org>
2013-07-12 9:05 ` Emanuel Berg [this message]
2013-07-10 21:22 window alignment at startup Mickey Ferguson
2013-07-10 22:17 ` Drew Adams
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=87y59cdu7j.fsf@VLAN-3434.student.uu.se \
--to=embe8573@student.uu.se \
--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.