Am 04.08.20 um 02:09 schrieb Gary Mills:
I just updated a system from hipster-20180701 to hipster-20200802 .  I
assume it changed from gnome to mate in the update.  Almost everything
worked afterwards.  I was quite impressed.

One thing that fails to work now is the window size for emacs.  Emacs
is the only text editor that I use.  The size now is 63 x 31.  I know
I can resize it by pulling on the window frame with my mouse, but I'd
like it to start out at 80 x 36.  This used to happen with gnome when
I added these lines to my .emacs file:

     (add-to-list 'default-frame-alist '(height . 36))
     (add-to-list 'default-frame-alist '(width . 80))

I've tried many things.  I tried the command-line option -geometry,
setting geometry in my .Xdefaults, and adding this line to my .emacs
file:

     (when window-system (set-frame-size (selected-frame) 80 36))

All of these attempts have failed.  I conclude that the mate window
manager is constraining the window size.  Is there some way I can tell
the window manager to set the default size the way I want it?


Hi Gary,

I am also using emacs quite heavily and I can definitely say that
resizing emacs' frame works for me on OI.
This is my variant for resizing the frame:
#+begin_src emacs-lisp
(defun set-frame-size-according-to-resolution ()
  (interactive)
  (if window-system
      (progn
        (if (> (x-display-pixel-width) 1280)
            (add-to-list 'default-frame-alist (cons 'width 120))
          (add-to-list 'default-frame-alist (cons 'width 80)))
        (add-to-list 'default-frame-alist
                     (cons 'height (min 38 (/ (-
(x-display-pixel-height) 320)
(frame-char-height))))))))
(set-frame-size-according-to-resolution)
#+end_src

So it must be your configuration that prevents the resizing.

Regards,
Andreas

_______________________________________________
openindiana-discuss mailing list
[email protected]
https://openindiana.org/mailman/listinfo/openindiana-discuss

Reply via email to