emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Joost Kremers <joostkremers@fastmail.fm>
To: John Kitchin <jkitchin@andrew.cmu.edu>
Cc: David Talmage <david.talmage@shoutpoint.com>,
	"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Make wide tables more readable
Date: Thu, 01 Dec 2016 21:43:01 +0100	[thread overview]
Message-ID: <87polbqt2i.fsf@fastmail.fm> (raw)
In-Reply-To: <CAJ51EToCRP=qCHWKuQ4dQYDY2D9yP876S474aipKutLr-mczug@mail.gmail.com>


On Thu, Dec 01 2016, John Kitchin wrote:
> I use:
>
> ;;;###autoload
> (defun tq-increase-text-size ()
>   "Increase text size."
>   (interactive)
>   (set-face-attribute 'default nil :height
>      (truncate (* 1.1 (face-attribute 'default :height)))))
>
> ;;;###autoload
> (defun tq-decrease-text-size ()
>   "Decrease text size."
>   (interactive)
>   (set-face-attribute 'default nil :height
>      (truncate (* 0.9 (face-attribute 'default :height)))))
>
> which I bind to C-- and  C-= to shrink the font size down until 
> it fits,
> then when I am done increase it.

Why not use `text-scale-adjust`? This function has convenient 
bindings in the form `C-x C-+` to increase text size, `C-x C--` to 
decrease, and `C-x C-0` to reset to default size. Furthermore, 
once you press any of these, you can simply use `+`, `-` and `0` 
for increasing, decreasing and resetting until you've found your 
preferred text size.

-- 
Joost Kremers
Life has its moments

  reply	other threads:[~2016-12-01 20:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-01 20:17 Make wide tables more readable David Talmage
2016-12-01 20:31 ` John Kitchin
2016-12-01 20:43   ` Joost Kremers [this message]
2016-12-01 21:12     ` John Kitchin
2016-12-01 21:33       ` Clément Pit--Claudel
2016-12-01 22:47 ` David Talmage

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87polbqt2i.fsf@fastmail.fm \
    --to=joostkremers@fastmail.fm \
    --cc=david.talmage@shoutpoint.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jkitchin@andrew.cmu.edu \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).