For what it's worth, I have this in my .emacs file to work around the
issue of Emacs starting up the wrong size:

```
;; https://bugs.launchpad.net/emacs/+bug/2011244
(defun fix-frame-size (&optional frame)
  (when (window-system)
    (if (not frame)
        (setq frame (car (frame-list))))
    (let ((width (frame-width frame)))
      (if (< width 80)
          (progn (message "Fixing frame %s size from %d" frame width)
                 (set-frame-size frame 80 35))
        (message "Size of frame %s, %d,  is fine, not fixing" frame width)))))

(defun delayed-fix-frame-size (frame)
  ;; The frame resize sometimes doesn't work immediately after the frame is
  ;; opened. Might have to experiment with the delay to make sure it's long
  ;; enough.
  (run-at-time 0.25 nil 'fix-frame-size frame))

(add-hook 'after-make-frame-functions 'delayed-fix-frame-size 100)
(fix-frame-size)
```

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2011244

Title:
  emacs launching in GNOME is all messed up

To manage notifications about this bug go to:
https://bugs.launchpad.net/emacs/+bug/2011244/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to