aboutsummaryrefslogtreecommitdiff
path: root/Doom/.config/doom/modules/private/startup/config.el
blob: 48c4f5f1db8a1ffbfd9352bc1aa9ec7ed55eabd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
;;; private/startup/config.el -*- lexical-binding: t; -*-

(defun +startup/create-scratch-message ()
  "Generate a string for the scratch buffer"
  (format "Welcome to Emacs! (。◕‿◕。)
Load time was %s
Time of startup: %s"
          (emacs-init-time)
          (current-time-string (current-time))))

(add-hook 'doom-first-input-hook
          #'(lambda ()
              (setq-default mode-line-format (list "%l:%c %P \t %+%b(" '(:eval (format "%s" major-mode)) ") \t %I \t" vc-mode mode-line-end-spaces))
              (setq-default initial-scratch-message (+startup/create-scratch-message))))