all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Function to present few centered lines
Date: Wed, 14 Apr 2021 16:35:45 +0300	[thread overview]
Message-ID: <YHbvsYmALqju9xx+@protected.localdomain> (raw)
In-Reply-To: <83pmyxypp1.fsf@gnu.org>

* Eli Zaretskii <eliz@gnu.org> [2021-04-14 16:14]:
> > Date: Wed, 14 Apr 2021 16:03:45 +0300
> > From: Jean Louis <bugs@gnu.support>
> > 
> > - enlarging font, I don't know how to enlarge it, so that width and
> >   height of window is adjusted to new enlarged font
> 
> "Adjusted" in what way? to keep the same number of columns?  I think
> you need to manually enlarge the window.

If I do:

(window-width) ⇒ 103
(text-scale-increase 5) ⇒ t
(window-width) ⇒ 103
(progn (insert "Hello") (center-line)) --- it will not show centered
                                    according to text scale increase

What I would like is to get a new (window-width) value adjusted to the
text increased as to calculate more from thre.

> > - centering, I am trying to center line by using window-width and
> >   setting fill-column, it seem it does not center nicely.
> 
> Why not use center-region?

OK that is good idea. In this example I wish to center vertically as
also horizontally, but I can calculate vertical centering, insert
lines, and use center-region, that is fine.



  reply	other threads:[~2021-04-14 13:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-14 13:03 Function to present few centered lines Jean Louis
2021-04-14 13:13 ` Eli Zaretskii
2021-04-14 13:35   ` Jean Louis [this message]
2021-04-14 14:09     ` Eli Zaretskii

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=YHbvsYmALqju9xx+@protected.localdomain \
    --to=bugs@gnu.support \
    --cc=eliz@gnu.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.