Discussion:
Set the size of the "frame" when opening?
(too old to reply)
RonB
2020-02-20 23:16:56 UTC
Permalink
Is there a relatively easy way to open Emacs to full vertical length of your
screen? I'm guessing not, as frame(?) size seems to be determined by font
size — but there may be something I'm missing. It's a small annoyance to
have to drag to fit, especially when I'm often opening and closing Emacs
with a shell script.

Not a high priority, but I would appreciate any pointers.

Thank you.
--
"People are innocent until alleged to be involved in some
kind of criminal activity." — John Brennan, ex-CIA Director
HASM
2020-02-21 01:00:10 UTC
Permalink
Post by RonB
Is there a relatively easy way to open Emacs to full vertical length of your
screen?
Maybe look at:
https://www.emacswiki.org/emacs/FullScreen
https://github.com/rmm5t/maxframe.el
Post by RonB
I'm guessing not, as frame(?) size seems to be determined by font size
Not always. Run help set-frame-height:
...
(set-frame-height FRAME HEIGHT &optional PRETEND PIXELWISE)
...
Optional fourth argument PIXELWISE non-nil means that FRAME should be
HEIGHT pixels high.

-- HASM
RonB
2020-02-21 04:41:10 UTC
Permalink
Post by HASM
Post by RonB
Is there a relatively easy way to open Emacs to full vertical length of your
screen?
https://www.emacswiki.org/emacs/FullScreen
https://github.com/rmm5t/maxframe.el
Post by RonB
I'm guessing not, as frame(?) size seems to be determined by font size
...
(set-frame-height FRAME HEIGHT &optional PRETEND PIXELWISE)
...
Optional fourth argument PIXELWISE non-nil means that FRAME should be
HEIGHT pixels high.
-- HASM
Thank you!

I went to the Wiki and found the Frame Size section and was able to add the
following line to my .emacs file.

(add-to-list 'default-frame-alist '(height . 45))

I experimented until I got the right height. 45 fits perfectly. Thank you.

And thanks for the link to the Wiki. Here's the page where I found this...

https://www.emacswiki.org/emacs/FrameSize
--
"People are innocent until alleged to be involved in some
kind of criminal activity." — John Brennan, ex-CIA Director
Javier
2020-02-22 10:53:18 UTC
Permalink
Post by RonB
Is there a relatively easy way to open Emacs to full vertical length of your
screen? I'm guessing not, as frame(?) size seems to be determined by font
size — but there may be something I'm missing. It's a small annoyance to
have to drag to fit, especially when I'm often opening and closing Emacs
with a shell script.
You can use the command line options when invoking emacs

emacs -xrm '*fullscreen:fullheight'
emacs -fh
RonB
2020-02-22 19:18:57 UTC
Permalink
Post by Javier
Post by RonB
Is there a relatively easy way to open Emacs to full vertical length of your
screen? I'm guessing not, as frame(?) size seems to be determined by font
size — but there may be something I'm missing. It's a small annoyance to
have to drag to fit, especially when I'm often opening and closing Emacs
with a shell script.
You can use the command line options when invoking emacs
emacs -xrm '*fullscreen:fullheight'
emacs -fh
Ah, perfect! Thank you. Already Incorporated "emacs -fh" into my scripts (my
"solution" worked pretty well for the one computer, but not for the others).
I'm going to have invest some time into learning Emacs.
--
"People are innocent until alleged to be involved in some
kind of criminal activity." — John Brennan, ex-CIA Director
Ben Bacarisse
2020-02-22 20:57:26 UTC
Permalink
Post by Javier
Post by RonB
Is there a relatively easy way to open Emacs to full vertical length of your
screen? I'm guessing not, as frame(?) size seems to be determined by font
size — but there may be something I'm missing. It's a small annoyance to
have to drag to fit, especially when I'm often opening and closing Emacs
with a shell script.
You can use the command line options when invoking emacs
emacs -xrm '*fullscreen:fullheight'
emacs -fh
These are very handy (for which thanks) but they won't suit everyone
since they might leave a partial line visible. Also, new frames are not
full height so some other method is needed if that is desired. (I like
all frames to be full height by default.)
--
Ben.
RonB
2020-02-23 02:49:08 UTC
Permalink
Post by Ben Bacarisse
Post by Javier
Post by RonB
Is there a relatively easy way to open Emacs to full vertical length of your
screen? I'm guessing not, as frame(?) size seems to be determined by font
size — but there may be something I'm missing. It's a small annoyance to
have to drag to fit, especially when I'm often opening and closing Emacs
with a shell script.
You can use the command line options when invoking emacs
emacs -xrm '*fullscreen:fullheight'
emacs -fh
These are very handy (for which thanks) but they won't suit everyone
since they might leave a partial line visible. Also, new frames are not
full height so some other method is needed if that is desired. (I like
all frames to be full height by default.)
My usage is simple, just one frame. So far (on three computers) this has
filled the frame top to bottom. But I'm using fairly conventional desktops,
Mate and Cinnamon, so that might be helping me on this.
--
The fabulous Latitude D430, running
Linux Mint Mate 19.3 on 2GBs of RAM
Robert Pluim
2020-02-26 10:20:27 UTC
Permalink
Post by Javier
Post by RonB
Is there a relatively easy way to open Emacs to full vertical length of your
screen? I'm guessing not, as frame(?) size seems to be determined by font
size — but there may be something I'm missing. It's a small annoyance to
have to drag to fit, especially when I'm often opening and closing Emacs
with a shell script.
You can use the command line options when invoking emacs
emacs -xrm '*fullscreen:fullheight'
emacs -fh
Ben> These are very handy (for which thanks) but they won't suit everyone
Ben> since they might leave a partial line visible. Also, new frames are not
Ben> full height so some other method is needed if that is desired. (I like
Ben> all frames to be full height by default.)

(add-to-list 'default-frame-alist '(fullscreen . fullheight))

See (info "(emacs) Frame Parameters") for more details.

Robert
Ben Bacarisse
2020-02-26 12:34:29 UTC
Permalink
Post by Robert Pluim
Post by Javier
Post by RonB
Is there a relatively easy way to open Emacs to full vertical length of your
screen? I'm guessing not, as frame(?) size seems to be determined by font
size — but there may be something I'm missing. It's a small annoyance to
have to drag to fit, especially when I'm often opening and closing Emacs
with a shell script.
You can use the command line options when invoking emacs
emacs -xrm '*fullscreen:fullheight'
emacs -fh
Ben> These are very handy (for which thanks) but they won't suit everyone
Ben> since they might leave a partial line visible. Also, new frames are not
Ben> full height so some other method is needed if that is desired. (I like
Ben> all frames to be full height by default.)
(add-to-list 'default-frame-alist '(fullscreen . fullheight))
Thanks. I have always done this through X resources, but that's a
useful alternative.

Frame parameters (not matter how you set them) seem to interact with
other settings (like fringe, toolbar and scrollbar sizes) in
unpredictable ways. Currently I fudge it by setting the sizes to one
more than I want, but that's slightly annoying. Is there are a setting
for "line width once all other things have been dealt with"?
--
Ben.
Continue reading on narkive:
Loading...