el/dot-emacs.el: Arrange for mail/news frames to be 80 columns wide.
[profile] / el / dot-emacs.el
index 46b8fbd..4372f82 100644 (file)
@@ -854,6 +854,13 @@ Use this to arrange for per-server settings.")
   '(defalias 'nnimap-transform-headers
      (symbol-function 'mdw-nnimap-transform-headers)))
 
+(defadvice gnus-other-frame (around mdw-hack-frame-width compile activate)
+  "Always arrange for mail/news frames to be 80 columns wide."
+  (let ((default-frame-alist (cons `(width . ,(+ 80 mdw-frame-width-fudge))
+                                  (cl-delete 'width default-frame-alist
+                                             :key #'car))))
+    ad-do-it))
+
 ;;;--------------------------------------------------------------------------
 ;;; Utility functions.