0

How can I make it so that I can see 80 characters in my emacs window?

For example, I connect my laptop to an external monitor somewhere, start emacs, and maximize it to the full screen. I want a font size so I get the largest possible character size such that I can view 80 characters in a row. What do I do?

In particular, I have tried the following without success:

  1. text-scale-increase: Won't do fractional increase in the right steps so sometimes I have more and sometimes I have less than 80 characters (e.g., 85 or 75 characters).
  2. set-frame-font: Useful for trying to find a font that fits just right but again usually there are too many or too few characters.

The best I have achieved is to use something like

(set-frame-font 
   "-DAMA-Ubuntu Mono-normal-normal-normal-*-22-*-*-*-m-0-iso10646-1")

and tweak the -22- until its as close as possible.

Bonus note: I sometimes use (toggle-scroll-bars -1) to squeeze out some extra space.

  • Are you talking about getting 80 columns for arbitrary window sizes (for instance, full screen frames)? If so, adding that to your question would make it much clearer. – DoMiNeLa10 Feb 28 at 17:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.