Remove early-init

Update what's shown on dashboard
This commit is contained in:
Evie Litherland-Smith 2023-10-27 10:07:29 +01:00
parent 9088026c8d
commit 5987eb3395
3 changed files with 28 additions and 52 deletions

View file

@ -1,17 +0,0 @@
;;; early-init.el --- Emac s early initialization for Crafted Emacs (optional) -*- lexical-binding: t; -*-
;;; Commentary:
;;
;;; Code:
(add-to-list 'package-archives '("stable" . "https://stable.melpa.org/packages/"))
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(setq package-archive-priorities '(("gnu" . 99)
("nongnu" . 80)
("stable" . 70)
("melpa" . 0)))
(when (require 'package nil :noerror) (package-refresh-contents))
(provide 'early-init)
;;; early-init.el ends here

View file

@ -11,6 +11,17 @@
(when (and custom-file (file-exists-p custom-file))
(load custom-file nil 'nomessage))
;; Setup package-archives and priorities
(add-to-list 'package-archives '("stable" . "https://stable.melpa.org/packages/"))
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(setq package-archive-priorities '(("gnu" . 99)
("nongnu" . 80)
("stable" . 70)
("melpa" . 0)))
(when (require 'package nil :noerror) (package-refresh-contents))
;; Add custom modules to the `load-path'
(add-to-list 'load-path (expand-file-name "modules" user-emacs-directory))

View file

@ -7,25 +7,10 @@
;;; Code:
(defconst crafted-startup-ascii-logo
'(" .000000. " ;; Make sure 1st line is as wide as widest
" .0. .0."
" .00. .00."
" .000cl. .lc000."
".0 0."
"0. .o0000o. .0"
" 00 .0' '0. 00"
" 00 .0 0. 00"
" HHHHH HHHHHHHHHHHH HHHHH"
"HHHH HHH HHHHHHHHHHHHHH HHHH"
" HHHHHH HHHHHHHHH HHHHHHHH"
" HHH HHHH HHHHHHHHH HHHH"
" HHH HHHHHH"
" HHHHH HH"))
(setq use-dialog-box nil
display-line-numbers 'relative
fill-column 80
dashboard-icon-type 'nerd-icons
dashboard-set-heading-icons t
dashboard-set-file-icons t
dashboard-set-navigator t
@ -34,25 +19,22 @@
dashboard-projects-backend 'project-el
dashboard-projects-switch-function 'project-switch-project
dashboard-projects-show-base t
dashboard-items '((recents . 5)
(bookmarks . 5)
(projects . 5)
(agenda . 5)
(registers . 5))
dashboard-banner-ascii (concat " .000000. \n"
" .0. .0. \n"
" .00. .00. \n"
" .000cl. .lc000. \n"
".0 0.\n"
"0. .o0000o. .0\n"
" 00 .0' '0. 00 \n"
" 00 .0 0. 00 \n"
" HHHHH HHHHHHHHHHHH HHHHH \n"
"HHHH HHH HHHHHHHHHHHHHH HHHH\n"
" HHHHHH HHHHHHHHH HHHHHHHH \n"
" HHH HHHH HHHHHHHHH HHHH \n"
" HHH HHHHHH \n"
" HHHHH HH \n"))
dashboard-items '((recents . 5) (projects . 5) (agenda . 5))
dashboard-banner-ascii
(concat " .000000. \n"
" .0. .0. \n"
" .00. .00. \n"
" .000cl. .lc000. \n"
".0 0.\n"
"0. .o0000o. .0\n"
" 00 .0' '0. 00 \n"
" 00 .0 0. 00 \n"
" HHHHH HHHHHHHHHHHH HHHHH \n"
"HHHH HHH HHHHHHHHHHHHHH HHHH\n"
" HHHHHH HHHHHHHHH HHHHHHHH \n"
" HHH HHHH HHHHHHHHH HHHH \n"
" HHH HHHHHH \n"
" HHHHH HH \n"))
(tool-bar-mode -1)
(scroll-bar-mode -1)