• Set the size of the "frame" when opening?

    From RonB@21:1/5 to All on Thu Feb 20 23:16:56 2020
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From HASM@21:1/5 to All on Thu Feb 20 17:00:10 2020
    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

    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From RonB@21:1/5 to HASM on Fri Feb 21 04:41:10 2020
    On 2020-02-21, HASM <hasm@example.invalid> wrote:

    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

    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

    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Javier@21:1/5 to RonB on Sat Feb 22 04:53:18 2020
    RonB <ronb02NOSPAM@gmail.com> wrote:
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From RonB@21:1/5 to Javier on Sat Feb 22 19:18:57 2020
    On 2020-02-22, Javier <javier@invalid.invalid> wrote:
    RonB <ronb02NOSPAM@gmail.com> wrote:
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ben Bacarisse@21:1/5 to Javier on Sat Feb 22 20:57:26 2020
    Javier <javier@invalid.invalid> writes:

    RonB <ronb02NOSPAM@gmail.com> wrote:
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From RonB@21:1/5 to Ben Bacarisse on Sun Feb 23 02:49:08 2020
    On 2020-02-22, Ben Bacarisse <ben.usenet@bsb.me.uk> wrote:
    Javier <javier@invalid.invalid> writes:

    RonB <ronb02NOSPAM@gmail.com> wrote:
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Robert Pluim@21:1/5 to All on Wed Feb 26 11:20:27 2020
    On Sat, 22 Feb 2020 20:57:26 +0000, Ben Bacarisse <ben.usenet@bsb.me.uk> said:

    Ben> Javier <javier@invalid.invalid> writes:
    >> RonB <ronb02NOSPAM@gmail.com> wrote:
    >>> 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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ben Bacarisse@21:1/5 to Robert Pluim on Wed Feb 26 12:34:29 2020
    Robert Pluim <rpluim@gmail.com> writes:

    On Sat, 22 Feb 2020 20:57:26 +0000, Ben Bacarisse <ben.usenet@bsb.me.uk> said:

    Ben> Javier <javier@invalid.invalid> writes:
    >> RonB <ronb02NOSPAM@gmail.com> wrote:
    >>> 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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)