Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 391245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:02:34+00:00 2026-05-12T16:02:34+00:00

I am using emacs 23 on my Ubuntu netbook edition. Every app, automatically goes

  • 0

I am using emacs 23 on my Ubuntu netbook edition. Every app, automatically goes to fullscreen (so does my emacs). But depending on the font size (:height), I get a smaller working window.
If I go to :height normal I get the full area but the fonts are HUGE!

any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T16:02:34+00:00Added an answer on May 12, 2026 at 4:02 pm

    OK, so actually I added this to my initfile:

    (add-hook 'after-make-frame-functions
          (lambda (frame)
            (progn
              (add-to-list 'default-frame-alist
                   (cons 'height
                     (/ (x-display-pixel-height)
                        (frame-char-height)))
                   (add-to-list 'default-frame-alist
                        (cons 'width
                              (/ (x-display-pixel-width)
                             (frame-char-width))))))))
    

    and now the window is the same size as the full screen. If you are setting your fonts inside of the after-make-frame-functions hook then it is important that this comes first in your initfile, (I think because hooks are run in reverse order) but if you’re just setting the fonts then this should work OK anywhere.

    Of course for maximum safety you could put this and your ‘set fonts’ stuff into the same defun, with this coming after the fonts have been set.

    EDIT:
    This is a slightly more forceful way to do it, in case that doesn’t work.

    This gives me some issues though, really you would probably want to subtract the height of the top panel from the height you’re setting it to.

    (add-hook 'after-make-frame-functions
      (lambda (frame)
        (progn
          (set-frame-height frame
                (/ (x-display-pixel-height)
                   (frame-char-height)))
          (set-frame-width frame
                (/ (x-display-pixel-width)
                   (frame-char-width))))))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using emacs 22.2.1 on Ubuntu 9.04. Every time I open a file
I'm using GNU Emacs on 64bit Ubuntu. Monaco font works well, except the gap
GNU emacs 23.2.1 I am using emacs on a netbook 10 screen size. If
I am using emacs in Ubuntu. How can I remap META to the ALT
I am now using Emacs 23 with visual-line-mode turned of for text editing but
I'm using Emacs as an editor. I want to set the tab size to
I am using emacs 23.2 on Ubuntu 10.04 & Windows XP along with cedet
Basically I am using emacs on remote server (my school) but when I logged
Using emacs on Ubuntu 11.10. I want to connect to a SQL Server database
So I wrote the following code in linux(Ubuntu) using the emacs text editor it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.