[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: setting frame size with C-5 2 - emacs 30.5
From: |
H . -J . Heitländer |
Subject: |
Re: setting frame size with C-5 2 - emacs 30.5 |
Date: |
Tue, 14 Nov 2023 15:33:39 +0000 |
Found it at last (stupid me)
Chatgpt: write emacs elisp function which sets the new frame size to 65
w and 33 h
answer: (with small edits)
(defun KM-make-frame ()
"New frame and set size to w 65, h 33
"
(interactive)
(let ((old-frame (selected-frame))
(new-frame (make-frame)))
(select-frame new-frame)
(set-frame-width new-frame 65)
(set-frame-height new-frame 33)
(select-frame old-frame)
)
)
Outstanding is the problem with the irritating behaviour of C-5 2. But
we'll get to that (at some time)
TX to all
Am 03.11.23 um 17:16 schrieb Emanuel Berg:
H.-J. Heitländer wrote:
Additionally the variables "frame-char-width" resp.
"frame-char-height" don't seem to be defined.
They are functions, `frame-char-width' and
`frame-char-height'.
Here (frame-char-width) is 1 and (frame-char-height) is
also 1.