summaryrefslogtreecommitdiff
path: root/nemacs-splash.el
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2024-05-28 11:19:22 -0700
committerChristian Cunningham <cc@localhost>2024-05-28 11:19:22 -0700
commitf14c2d3fe50de3c55e7c9684e93cdf5608a00b89 (patch)
treea8ea3bdb68779ecdce6d7be8b7d8f56a9ff3b4c1 /nemacs-splash.el
Initial Commit
Diffstat (limited to 'nemacs-splash.el')
-rw-r--r--nemacs-splash.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/nemacs-splash.el b/nemacs-splash.el
new file mode 100644
index 0000000..d9e01c8
--- /dev/null
+++ b/nemacs-splash.el
@@ -0,0 +1,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)