;; hack gnus
(require 'gnus-group)
(defun gnus-group-startup-message (&optional x y)
"Insert startup message in current buffer."
;; Insert the message.
(erase-buffer)
(when (display-graphic-p)
(let* ((image (create-image "~/box/Pictures/Amadeuslogo.png"))
(size (image-size image)))
(insert-char ?\n (max 0 (round (- (window-height)
(or y (cdr size)) 1) 2)))
(insert-char ?\ (max 0 (round (- (window-width)
(or x (car size))) 2)))
(insert-image image)
(insert "\n")
(insert-char ?\ (max 0 (round (- (window-width)
(or x (car size))) 2)))
(insert "Amadeus system is loading...")
(goto-char (point-min))
))
(set-buffer-modified-p t))
文字图片自己换😝