~decomposed startup module into personal config

This commit is contained in:
dx
2020-07-16 19:11:20 +01:00
parent 6bdf6db3b4
commit 4bbf47fc4e
4 changed files with 4 additions and 25 deletions

View File

@@ -10,7 +10,6 @@
(doom! :private
;;(oreoline)
bindings
startup
gentemplate
narrow
;; (ocaml +lsp)

View File

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

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

View File

@@ -44,6 +44,10 @@ Some quality of life things and others that I couldn't really put in one categor
#+END_SRC
* Package Configuration
Configuration for or based heavily around specific packages that I find very important
** Modeline and startup
#+BEGIN_SRC elisp
(setq-default mode-line-format (list "%l:%c \t %P \t %+%b(" '(:eval (format "%s" major-mode)) ") \t %I \t" vc-mode mode-line-end-spaces))
#+END_SRC
** Ido
Just add vimish keybindings to ido completion
#+BEGIN_SRC elisp