Switch over to straight for package management

This commit is contained in:
Maciej 2021-03-06 11:22:08 +02:00
parent 76c7d665c7
commit 0d51d8302c
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
33 changed files with 190 additions and 77 deletions

View file

@ -11,7 +11,7 @@
;;; Code:
(use-package avy
:ensure t
:straight t
:defer t)
(provide 'icejam-pkg-avy)

View file

@ -41,7 +41,7 @@
;; Move buffers around with buffer keys
(use-package buffer-move
:ensure t
:straight t
:defer t
:bind ("C-c m [" . buf-move-left)
("C-c m ]" . buf-move-right)
@ -88,7 +88,7 @@
;; Allow to execute path from shell
(use-package exec-path-from-shell
:if (memq window-system '(mac ns))
:ensure t
:straight t
:config (add-to-list 'exec-path "/usr/local/bin")
(exec-path-from-shell-initialize))
@ -104,7 +104,7 @@
;;;;;;;;;;;;;;;;; Record frequency of different commands. Review them later
(use-package keyfreq
:defer t
:ensure t)
:straight t)
(keyfreq-mode t)
(keyfreq-autosave-mode t)
@ -112,7 +112,7 @@
;;;;;;;;;;;;;;;;; Show hints about key combinations
(use-package which-key
:defer t
:ensure t)
:straight t)
;;;;;;;;;;;;;;;;; Speed up long line display by disabling bidirectional text
(setq-default bidi-paragraph-direction 'left-to-right

View file

@ -4,11 +4,11 @@
;;; Code:
(use-package yasnippet
:ensure t
:straight t
:defer t)
(use-package yasnippet-snippets
:ensure t
:straight t
:defer t
:config
(unbind-key "C-c & C-n" yas-minor-mode-map)
@ -19,7 +19,7 @@
:commands (company-indent-or-complete-common company-yasnippet)
:requires (yasnippet
yasnippet-snippets)
:ensure t
:straight t
:defer t)
(global-company-mode t)

View file

@ -11,7 +11,7 @@
;;; Code:
(use-package dashboard
:ensure t
:straight t
:config
(dashboard-setup-startup-hook))

View file

@ -6,7 +6,7 @@
(require 'icejam-pkg-keys-mode "$HOME/.emacs.d/pkg/keys-mode.el")
(use-package deft
:ensure t
:straight t
:defer t
:config (setq
deft-directory (substitute-in-file-name "$HOME/OneDrive/deft")

View file

@ -5,7 +5,7 @@
;; Use flycheck globally to check syntax and compile languages
(use-package flycheck
:commands flycheck-define-checker
:ensure t
:straight t
:defer t
:config (global-flycheck-mode t)
(unbind-key "C-c ! C-c" flycheck-mode-map)

View file

@ -3,7 +3,7 @@
;;; Global hydra definitions.
;;; Code:
(use-package hydra
:ensure t
:straight t
:defer t
:config
(defhydra hydra-file-switcher-menu (:color teal :hint nil)

View file

@ -4,7 +4,7 @@
;;; Code:
(use-package ispell
:ensure t
:straight t
:config (setq ispell-program-name "aspell")
(setq ispell-extra-args
'("--run-together" "--run-together-limit=5" "--run-together-min=2"))

View file

@ -5,13 +5,13 @@
(require 'icejam-pkg-keys-mode "$HOME/.emacs.d/pkg/keys-mode.el")
(use-package counsel :ensure t :defer t)
(use-package swiper :ensure t :defer t)
(use-package helpful :ensure t :defer t)
(use-package counsel :straight t :defer t)
(use-package swiper :straight t :defer t)
(use-package helpful :straight t :defer t)
(use-package ivy
:requires (counsel swiper helpful)
:ensure t
:straight t
:defer t
:config (setq ivy-use-virtual-buffers t ;; Display recent files in ivy-switch-buffer
ivy-count-format "(%d of %d) " ;; Current candidate count style

View file

@ -4,7 +4,7 @@
;;; Code:
(use-package lsp-mode
:ensure t
:straight t
:defer t
:requires (company)
:config
@ -54,7 +54,7 @@
:hook ((typescript-mode . lsp-deferred)))
(use-package lsp-ui
:ensure t
:straight t
:requires (lsp-mode)
:defer t)
@ -67,7 +67,7 @@
;; Lsp debugger mode
(use-package dap-mode
:ensure t
:straight t
:defer t
:requires (lsp-mode lsp-ui))

View file

@ -3,7 +3,7 @@
;;; Code:
(use-package magit
:ensure t
:straight t
:defer t
:bind ("<f5> c" . magit-checkout)
("<f5> b" . magit-blame-addition)

View file

@ -10,6 +10,7 @@
;;; Code:
(use-package perspective
:straight t
:config (persp-mode)
(unbind-key "C-x x" persp-mode-map)
(unbind-key "C-x x C-l" persp-mode-map)

View file

@ -18,7 +18,7 @@
;;; Show trailing whitespace and remove whitespace on save
(use-package whitespace
:commands whitespace-mode
:ensure t
:straight t
:defer t
:hook (((prog-mode text-mode conf-mode) . whitespace-mode)
(before-save . whitespace-cleanup))
@ -32,7 +32,7 @@
;; Use colorful, matching parens
(use-package rainbow-delimiters
:commands rainbow-delimiters-mode
:ensure t
:straight t
:defer t
:hook (((prog-mode text-mode) . rainbow-delimiters-mode))
:init
@ -43,13 +43,13 @@
;;; Show hex (#aaa) colors as colors
(use-package rainbow-mode
:commands rainbow-mode
:ensure t
:straight t
:hook ((prog-mode text-mode) . rainbow-mode))
;; Dash integration
(use-package dash-at-point
:commands dash-at-point
:ensure t
:straight t
:defer t
:bind (:map prog-mode-map ("C-s C-d" . dash-at-point)
:map text-mode-map ("C-s C-d" . dash-at-point))
@ -70,13 +70,13 @@
(setq-local tab-stop-list (number-sequence step 200 step)))
(use-package column-enforce-mode
:ensure t
:straight t
:defer t
:config (global-column-enforce-mode t))
;; Vim-like regex replace with preview in buffer.
(use-package visual-regexp
:ensure t
:straight t
:defer t)
(provide 'icejam-pkg-prog-mode)

View file

@ -3,10 +3,10 @@
;;; Project management based on git repos
;;; Code:
(use-package counsel-projectile :ensure t :defer t)
(use-package counsel-projectile :straight t :defer t)
(use-package projectile
:ensure t
:straight t
:requires (counsel counsel-projectile)
:config
(setq-default projectile-completion-system 'ivy ;; Use ivy as completion system

View file

@ -13,7 +13,7 @@
;;;;;;;;;;;;;;;;; Use more advanced undo options
(use-package undo-tree
:defer t
:ensure t
:straight t
:config (setq-default
;; Show diff
undo-tree-visualizer-diff t