Use elpaca instead of straight

Some big changes related to that, and to use-package
This commit is contained in:
Maciej 2024-10-23 09:08:11 +03:00
parent ecf3d4195a
commit c7b0c1c6c2
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
50 changed files with 1262 additions and 365 deletions

View file

@ -40,15 +40,15 @@
(global-set-key (kbd "RET") 'newline)
;;;;;;;;; Easy copying of data ;;;;;;;;;;;;;;;
(use-package easy-kill :straight t :defer t
(use-package easy-kill :ensure t :defer t
:config (global-set-key [remap kill-ring-save] 'easy-kill))
;; Move buffers around with buffer keys
(use-package buffer-move :straight t :defer t)
(use-package buffer-move :ensure t :defer t)
;; Garbage collection magic hack
(use-package gcmh :straight t
(use-package gcmh :ensure t
:config (gcmh-mode 1)
(setq gcmh-verbose nil
gcmh-idle-delay 'auto
@ -96,13 +96,13 @@
;; Allow to execute path from shell
(use-package exec-path-from-shell
:if (memq window-system '(x mac ns))
:straight t
:ensure t
:config (add-to-list 'exec-path "/usr/local/bin")
(dolist (var '("DEFT_PATH" "LANG" "LC_CTYPE"))
(add-to-list 'exec-path-from-shell-variables var))
(exec-path-from-shell-initialize))
(use-package direnv :straight t :config (direnv-mode))
(use-package direnv :ensure t :config (direnv-mode))
;; Draw underline lower
(setq x-underline-at-descent-line t)
@ -114,12 +114,12 @@
indicate-empty-lines nil)
;;;;;;;;;;;;;;;;; Treemacs
(use-package treemacs :straight t :defer t
(use-package treemacs :ensure t :defer t
:config (treemacs-follow-mode 1) ;; Follow the current project.
:bind (:map icejam-keys-mode-map
([(hyper b)] . treemacs))) ;; Show the folder tree
(use-package treemacs-all-the-icons :defer t :requires (treemacs) :straight t
(use-package treemacs-all-the-icons :defer t :requires (treemacs) :ensure t
:config
(treemacs-load-theme "all-the-icons")
(treemacs-project-follow-mode t))
@ -127,14 +127,14 @@
;;;;;;;;;;;;;;;;; Record frequency of different commands. Review them later
(use-package keyfreq
:defer t
:straight t
:ensure t
:config
(keyfreq-mode t)
(keyfreq-autosave-mode t))
;;;;;;;;;;;;;;;;; Show hints about key combinations
(use-package which-key
:straight t
:ensure t
:config
(setq which-key-idle-delay 0.5)
(which-key-mode t))