summaryrefslogtreecommitdiff
path: root/nemacs-splash.el
blob: d9e01c8e825ef0ecb66932dbc9ada58ee066c95c (plain)
1
2
3
4
5
6
7
8
9
10
11
(switch-to-buffer "*splash*")
(with-current-buffer "*splash*"
  (let* ((message "Welcome to nEmacs")
	 (message-len (length message)))
    (insert
     (concat
      (make-string (/ (- (window-total-width) message-len) 2) ? )
      message
      "\n"))))

(provide 'nemacs-splash)