mirror of
https://github.com/larstvei/dot-emacs.git
synced 2025-06-06 07:20:12 +00:00
Compare commits
2 Commits
59fd42d8d3
...
81f2886ec9
Author | SHA1 | Date | |
---|---|---|---|
81f2886ec9 | |||
94abdf47df |
36
init.org
36
init.org
@ -184,10 +184,17 @@
|
|||||||
number, and restore the default value after initialization.
|
number, and restore the default value after initialization.
|
||||||
|
|
||||||
#+begin_src emacs-lisp :tangle early-init.el
|
#+begin_src emacs-lisp :tangle early-init.el
|
||||||
(setq gc-cons-threshold most-positive-fixnum)
|
|
||||||
(add-hook 'after-init-hook
|
(let ((file-name-handler-alist-old file-name-handler-alist))
|
||||||
(lambda ()
|
(add-hook 'emacs-startup-hook
|
||||||
(setq gc-cons-threshold (* 1024 1024 20))))
|
(lambda ()
|
||||||
|
(setq gc-cons-threshold (* 1024 1024 20))
|
||||||
|
(setq file-name-handler-alist file-name-handler-alist-old)))
|
||||||
|
(setq gc-cons-threshold most-positive-fixnum)
|
||||||
|
(setq file-name-handler-alist nil))
|
||||||
|
|
||||||
|
(setq inhibit-default-init t)
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Packages
|
* Packages
|
||||||
@ -526,27 +533,6 @@
|
|||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Dashboard
|
|
||||||
|
|
||||||
Dashboard provides a nice welcome.
|
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
|
||||||
|
|
||||||
;; A startup screen extracted from Spacemacs
|
|
||||||
(use-package dashboard
|
|
||||||
:config
|
|
||||||
(setq dashboard-projects-backend 'project-el
|
|
||||||
dashboard-banner-logo-title nil
|
|
||||||
dashboard-center-content t
|
|
||||||
dashboard-set-footer nil
|
|
||||||
dashboard-page-separator "\n\n\n"
|
|
||||||
dashboard-items '((projects . 15)
|
|
||||||
(recents . 15)
|
|
||||||
(bookmarks . 5)))
|
|
||||||
(dashboard-setup-startup-hook))
|
|
||||||
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
** Center content mode
|
** Center content mode
|
||||||
|
|
||||||
[[https://git.larstvei.no/larstvei/center-content-mode][center-content-mode]] is a small, homegrown, minor mode for centering the
|
[[https://git.larstvei.no/larstvei/center-content-mode][center-content-mode]] is a small, homegrown, minor mode for centering the
|
||||||
|
Loading…
Reference in New Issue
Block a user