Skip to content

Commit

Permalink
use: use-package
Browse files Browse the repository at this point in the history
  • Loading branch information
ravachol-yang committed Feb 24, 2024
1 parent 931243b commit 8d0203c
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 17 deletions.
3 changes: 2 additions & 1 deletion lisp/init-nerd-icons.el
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
;;; Commentary:
;;; Code:

(maybe-require-package 'nerd-icons)
(use-package nerd-icons
:ensure t)

(provide 'init-nerd-icons)
;;; init-nerd-icons.el ends here
3 changes: 2 additions & 1 deletion lisp/init-paredit.el
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
;;; Commentary:
;;; Code:

(maybe-require-package 'paredit)
(use-package paredit
:ensure t)

(provide 'init-paredit)
;;; init-paredit.el ends here
11 changes: 6 additions & 5 deletions lisp/init-projectile.el
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
;;; Commentary:
;;; Code:

(maybe-require-package 'projectile)

(projectile-mode +1)
;; Recommended keymap prefix on Windows/Linux
(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
(use-package projectile
:ensure t
:config
(projectile-mode +1)
;; Recommended keymap prefix on Windows/Linux
(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map))

(provide 'init-projectile)
;;; init-elpa.el ends here
10 changes: 6 additions & 4 deletions lisp/init-racket.el
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
;;; Commentary:
;;; Code:

(maybe-require-package 'racket-mode)
(add-hook 'racket-mode-hook 'paredit-mode)
(add-hook 'racket-repl-mode-hook 'electric-pair-mode)
(add-hook 'racket-mode-hook 'racket-xp-mode)
(use-package racket-mode
:ensure t
:config
(add-hook 'racket-mode-hook 'paredit-mode)
(add-hook 'racket-repl-mode-hook 'electric-pair-mode)
(add-hook 'racket-mode-hook 'racket-xp-mode))

(provide 'init-racket)
;;; init-racket.el ends here
7 changes: 4 additions & 3 deletions lisp/init-rainbow.el
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
;;; Commentary:
;;; Code:

(maybe-require-package 'rainbow-delimiters)

(add-hook 'prog-mode-hook #'rainbow-delimiters-mode)
(use-package rainbow-delimiters
:ensure t
:config
(add-hook 'prog-mode-hook #'rainbow-delimiters-mode))

(provide 'init-rainbow)
;;; init-rainbow.el ends here
8 changes: 5 additions & 3 deletions lisp/init-themes.el
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@
;; (maybe-require-package 'sublime-themes)

;; Dracula theme
(maybe-require-package 'dracula-theme)
(use-package dracula-theme
:ensure t)

;; Timu's themes
;; (maybe-require-package 'timu-spacegrey-theme)
(maybe-require-package 'timu-rouge-theme)
(use-package timu-rouge-theme
:ensure t)

(load-theme 'timu-rouge t)
(load-theme 'dracula t)

(provide 'init-themes)
;;; init-themes.el ends here

0 comments on commit 8d0203c

Please sign in to comment.