This refactor removes a lot of the 'training wheels' that doom provides (i.e. no modeline, bindings, etc). Instead, I defined my own modules and systems to help with those tasks. I am now using the default emacs modeline, customised to my liking, as well as the default scratch buffer as my startup page. This basically allows me to have a finer degree of control over what my Emacs is doing, which is great as I can remove redundant pieces that I don't use.
13 lines
509 B
EmacsLisp
13 lines
509 B
EmacsLisp
;;; 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))))
|
|
|
|
(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 initial-scratch-message (+startup/create-scratch-message))
|