Skip to content

Commit

Permalink
Refactor :ensure for some packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Rego A Borsodi committed Oct 25, 2024
1 parent 382732d commit 6efd3ac
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 13 deletions.
19 changes: 16 additions & 3 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,19 @@

(elpaca-wait)

;; ----------------------------------------------------------------------------
;; Update some builtin packages
;; ----------------------------------------------------------------------------

(use-package transient
:ensure (:source "MELPA")
)

;; Magit requires seq>=2.24
;; (use-package seq
;; :ensure (:source "GNU-devel ELPA")
;; )

;; ====================================
;; General setup
;; ====================================
Expand Down Expand Up @@ -115,9 +128,9 @@
(define-prefix-command 'rb-user-keymap)
(global-set-key (kbd "C-c 8") 'rb-user-keymap)

;; =========================
;; Global development setup
;; =========================
;; ----------------------------------------------------------------------------
;; Initialize all packages
;; ----------------------------------------------------------------------------


(use-package dumb-jump
Expand Down
1 change: 1 addition & 0 deletions lisp/init-appearance.el
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ Also pass ARGS to `set-face-attribute' calls."
;; ----------------------------------------------------------------------------

(use-package rainbow-delimiters
:ensure (:source "MELPA")
:config
(set-face-foreground 'rainbow-delimiters-depth-1-face "#c66") ; red
(set-face-foreground 'rainbow-delimiters-depth-2-face "#6c6") ; green
Expand Down
1 change: 1 addition & 0 deletions lisp/init-editing-utils.el
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@

(use-package aggressive-indent
:diminish
:ensure (:source "MELPA")
:hook
((css-mode . aggressive-indent-mode))
((emacs-lisp-mode . aggressive-indent-mode))
Expand Down
1 change: 1 addition & 0 deletions lisp/init-lisp.el
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
(bind-key "e k" 'ert-kill-all-test-buffers 'rb-lispy-keymap))

(use-package slime
:ensure (:source "MELPA")
:config
(setq inferior-lisp-program "sbcl")
(defun override-slime-del-key ()
Expand Down
2 changes: 1 addition & 1 deletion lisp/init-lsp.el
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
)

(use-package lsp-pyright
:ensure t
:ensure (:source "MELPA")
:hook (python-mode . (lambda ()
(require 'lsp-pyright))))

Expand Down
2 changes: 1 addition & 1 deletion lisp/init-sessions.el
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


(use-package session
:ensure t
:ensure (:source "MELPA")
:config
(session-initialize)
(setq session-save-file (locate-user-emacs-file ".session"))
Expand Down
8 changes: 0 additions & 8 deletions lisp/init-vc.el
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@

;; Git integration
(use-package magit)
(use-package transient
:ensure (:source "MELPA")
)
;; Magit requires seq>=2.24
(use-package seq
:ensure (:source "MELPA")
)


;; Git changes highlighted on the fringe
(use-package diff-hl
Expand Down
1 change: 1 addition & 0 deletions lisp/init-windows.el
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

;; Make "C-x o" prompt for a target window when there are more than 2
(use-package switch-window
:ensure (:source "MELPA")
:config
(setq-default switch-window-shortcut-style 'alphabet)
(setq-default switch-window-timeout nil)
Expand Down

0 comments on commit 6efd3ac

Please sign in to comment.