Some changes to init file to increase loading speed
This commit is contained in:
parent
c861e4ffe6
commit
14ac803fcf
1 changed files with 102 additions and 95 deletions
15
init.el
15
init.el
|
@ -1,4 +1,5 @@
|
|||
(setq package-quickstart t)
|
||||
(setq gc-cons-threshold 100000000)
|
||||
(add-hook 'after-init-hook (lambda () (setq gc-cons-threshold 800000)))
|
||||
|
||||
;; (add-hook 'emacs-startup-hook
|
||||
;; (lambda ()
|
||||
|
@ -462,6 +463,7 @@
|
|||
(require 'shrface))
|
||||
|
||||
(use-package nov
|
||||
:defer t
|
||||
:hook ((nov-mode . visual-line-mode)
|
||||
(nov-mode . mk/nov-font-settings))
|
||||
:mode ("\\.epub\\'" . nov-mode)
|
||||
|
@ -487,6 +489,7 @@
|
|||
|
||||
|
||||
(use-package sql
|
||||
:defer t
|
||||
:config
|
||||
(setq sql-connection-alist
|
||||
'((finance-db
|
||||
|
@ -616,6 +619,7 @@
|
|||
:render (gt-buffer-render))))
|
||||
|
||||
(use-package magit
|
||||
:defer t
|
||||
:bind ("C-x g" . magit-status)
|
||||
:init
|
||||
(when (eq system-type 'windows-nt)
|
||||
|
@ -1244,8 +1248,7 @@ Uses `mk/hyperspec-dir-locations' to find the directory."
|
|||
|
||||
(use-package elfeed
|
||||
:bind ("C-x w" . elfeed)
|
||||
:init
|
||||
(setq elfeed-feeds
|
||||
:init (setq elfeed-feeds
|
||||
'(("https://netzpolitik.org/feed/" netz politik news)
|
||||
("https://www.marcuskammer.dev/weblog/index.xml" personal)
|
||||
("https://www.guyrutenberg.com/feed/" linux blog)
|
||||
|
@ -1337,7 +1340,9 @@ Uses `mk/hyperspec-dir-locations' to find the directory."
|
|||
("https://feed.theregister.com/atom?a=Liam%20Proven" register foss)
|
||||
("https://benswift.me/feed.xml" blog creative technology emacs computing)
|
||||
))
|
||||
(setq elfeed-search-filter "@7-day-ago +unread")
|
||||
:custom
|
||||
(elfeed-search-filter "@7-day-ago +unread")
|
||||
:config
|
||||
(let ((feeds (expand-file-name "~/feeds.el")))
|
||||
(when (file-exists-p feeds)
|
||||
(load-file feeds))))
|
||||
|
@ -1655,6 +1660,7 @@ Uses `mk/hyperspec-dir-locations' to find the directory."
|
|||
("columns" "fullflexible")))
|
||||
(org-latex-inputenc-alist '((\"utf8\" . \"utf8x\")))
|
||||
:config
|
||||
(add-to-list 'org-file-apps '("\\.pdf\\'" . emacs))
|
||||
(if (eq system-type 'windows-nt)
|
||||
(setq org-babel-python-command "python")
|
||||
(setq org-babel-python-command "python3"))
|
||||
|
@ -1943,6 +1949,7 @@ Uses `mk/hyperspec-dir-locations' to find the directory."
|
|||
(require 'request)
|
||||
|
||||
(use-package org-roam
|
||||
:defer t
|
||||
:after org
|
||||
:init
|
||||
(setq org-roam-db-autosync-mode t)
|
||||
|
|
Loading…
Add table
Reference in a new issue