Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emacs doesn't cover the full screen #177

Closed
thomasheartman opened this issue Jan 10, 2020 · 5 comments
Closed

Emacs doesn't cover the full screen #177

thomasheartman opened this issue Jan 10, 2020 · 5 comments
Labels

Comments

@thomasheartman
Copy link

I tried to install the formula with a couple different options, but they all seemed to cause the same effect where the application window wouldn't fill the whole screen or assigned area.

When given its own space, it's vertically (and maybe horizontally) shorter than my install of Emacs 26.3 (the Railwaycat version). When run as a floating window on the desktop, it wouldn't cover the whole desktop, leaving a visible gap on the bottom and to the right:
Screenshot 2020-01-10 at 08 37 36. I run Amethyst as a window manager, and all other windows cover the screen fully.

I'm not sure what the cause is, or whether this is on you or not, but I thought I'd flag the issue and get some input on what's going on.

Note: when installing without any options, I did get it to cover my laptop screen, but the issue persists on my external monitor. I have not used the laptop screen for any of the of other install configurations, so I don't know whether that'd work or not.

Installations I've tried:

Regular:

$ brew install emacs-plus

--HEAD:

$ brew install emacs-plus --HEAD

Bunch of options:

brew install emacs-plus --HEAD --with-ctags --with-jansson --with-modern-icon --with-no-titlebar --with-dbus

Like above, but without --with-no-titlebar:

brew install emacs-plus --HEAD --with-ctags --with-jansson --with-modern-icon --with-dbus
@d12frosted
Copy link
Owner

d12frosted commented Jan 10, 2020

Hey @t-hart

Can you please try setting (setq frame-resize-pixelwise t) somewhere soon early in your init.el file?

@thomasheartman
Copy link
Author

Sure! I won’t be back in until Monday, but I’ll give it a go then. Feel free to nudge me if I forget 😁

@d12frosted
Copy link
Owner

@t-hart so it's Monday and here I am, pinging you to check ;)

@thomasheartman
Copy link
Author

Thanks for reminding me! So I tried setting frame-resize-pixelwise to t, and am happy to report that it appears to be working! What exactly does this do and why does it change the behaviour in this manner?

@d12frosted
Copy link
Owner

No problem! I am glad that it helped! It's actually mentioned in the README file, but hidden behind description of no-titlebar option.

In general, when it comes to Emacs configuration, describe functions are the good starting point (e.g. C-h v frame-resize-pixelwise). Basically, by default Emacs round the frame size to frame-char-height and frame-char-width so you don't see half characters. It's debatable whether it's a good default or not :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants