~~/.doom.d -> ~/.config/doom

This commit is contained in:
dx
2020-07-15 15:56:08 +01:00
parent 33edf2cf6d
commit 6bdf6db3b4
42 changed files with 16 additions and 14 deletions

View File

@@ -0,0 +1,10 @@
#+TITLE: private/startup
#+DATE: July 15, 2020
* Description
Basically setup the default Emacs mode-line and the scratch buffer for ease of use.
This replaces the =modeline= and =doom-dashboard= modules as it leverages the default Emacs utilities.
* Prerequisites
Emacs of some kind, preferably 27 just for the sake of preserving versioning.
* Requirements
None

View File

@@ -0,0 +1,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))))