diff options
author | dx <aryadevchavali1@gmail.com> | 2020-07-15 15:26:11 +0100 |
---|---|---|
committer | dx <aryadevchavali1@gmail.com> | 2020-07-15 15:26:11 +0100 |
commit | 3e7642cae16d0837d992e6b6ceef9c11e985acba (patch) | |
tree | 0559561ea668f5fb0d8fadef333cd6b6266508dd /Doom/.doom.d/modules/private/startup/config.el | |
parent | 8b067497daaf3f86695d2599b5415d3edf8935fb (diff) | |
download | dotfiles-3e7642cae16d0837d992e6b6ceef9c11e985acba.tar.gz dotfiles-3e7642cae16d0837d992e6b6ceef9c11e985acba.tar.bz2 dotfiles-3e7642cae16d0837d992e6b6ceef9c11e985acba.zip |
!REFACTOR: cleaning doom
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.
Diffstat (limited to 'Doom/.doom.d/modules/private/startup/config.el')
-rw-r--r-- | Doom/.doom.d/modules/private/startup/config.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Doom/.doom.d/modules/private/startup/config.el b/Doom/.doom.d/modules/private/startup/config.el new file mode 100644 index 0000000..e2e6722 --- /dev/null +++ b/Doom/.doom.d/modules/private/startup/config.el @@ -0,0 +1,12 @@ +;;; 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)) |