Skip to content

Commit 8972c31

Browse files
committed
Additional efforts of speeding up emacs including use-package with theme
1 parent 9a40dbd commit 8972c31

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

Diff for: init-calendar.el

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44

55

66
;; calfw
7-
(use-package calfw)
7+
(use-package calfw :defer t)
8+
9+
(use-package calfw-org)
810

911
(use-package calfw-ical
12+
:commands (my-open-calendar)
1013
:config
1114
(defun my-open-calendar ()
1215
(interactive)
@@ -18,5 +21,3 @@
1821
"gcal"
1922
"https://calendar.google.com/calendar/ical/m6a3jqdi6imnv97h39v9r528k4%40group.calendar.google.com/public/basic.ics"
2023
"Purple")))))
21-
22-
(use-package calfw-org)

Diff for: init.el

+5-4
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,12 @@
3939
(howm-home-directory "~/Documents/howm/")
4040
(howm-directory "~/Documents/howm/")
4141
:init
42-
(setq howm-view-title-header "*"))
42+
(setq howm-view-title-header "*")
43+
:commands(howm-menu))
4344

44-
(use-package minsk-theme)
45+
(use-package minsk-theme
46+
:config
47+
(when window-system (load-theme 'minsk t)))
4548

4649
(custom-set-variables
4750
;; custom-set-variables was added by Custom.
@@ -62,7 +65,5 @@
6265
;; If there is more than one, they won't work right.
6366
'(default ((t (:family "Iosevka" :foundry "outline" :slant normal :weight normal :height 120 :width normal)))))
6467

65-
(when window-system (load-theme 'minsk t))
66-
6768
;; Load calendar initialization
6869
(load "~/.emacs.d/init-calendar.el")

0 commit comments

Comments
 (0)