Add missing requires to use-package macros
Some checks are pending
/ Test config on ${{matrix.node}} (20) (push) Waiting to run
Some checks are pending
/ Test config on ${{matrix.node}} (20) (push) Waiting to run
This commit is contained in:
parent
a82e24839c
commit
9f73e90317
19 changed files with 67 additions and 65 deletions
|
|
@ -5,7 +5,7 @@
|
|||
(require '+custom-pkg-prog-mode "$HOME/.emacs.d/pkg/prog-mode.el")
|
||||
|
||||
(use-package dart-mode :straight t :defer t)
|
||||
(use-package lsp-dart :defer t :straight t)
|
||||
(use-package lsp-dart :defer t :straight t :requires (dart-mode lsp))
|
||||
|
||||
(defun +custom-lang-dart/activate-dart-mode ()
|
||||
"Reconfigure dart mode for your own purposes."
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
(require '+custom-pkg-prog-mode "$HOME/.emacs.d/pkg/prog-mode.el")
|
||||
|
||||
(use-package dhall-mode :straight t :defer t)
|
||||
(use-package dhall-mode :straight t :defer t :requires (lsp))
|
||||
|
||||
(defun +custom-lang-dhall/activate-dhall-mode ()
|
||||
"Reconfigure dhall mode for your own purposes."
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@
|
|||
(require '+custom-pkg-flycheck "$HOME/.emacs.d/pkg/flycheck.el")
|
||||
(require '+custom-pkg-transient "$HOME/.emacs.d/pkg/transient.el")
|
||||
|
||||
(use-package elixir-mode :requires (lsp-mode lsp-ui) :straight t)
|
||||
(use-package elixir-ts-mode :requires (lsp-mode lsp-ui) :straight t)
|
||||
(use-package elixir-mode :defer t :straight t)
|
||||
(use-package elixir-ts-mode :requires (elixir-mode lsp-mode lsp-ui) :straight t)
|
||||
|
||||
(add-to-list 'auto-mode-alist '("\\.exs\\'" . elixir-ts-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.ex\\'" . elixir-ts-mode))
|
||||
|
|
|
|||
|
|
@ -14,10 +14,8 @@
|
|||
(require '+custom-pkg-flycheck "$HOME/.emacs.d/pkg/flycheck.el")
|
||||
(require '+custom-pkg-transient "$HOME/.emacs.d/pkg/transient.el")
|
||||
|
||||
(use-package tree-sitter-indent :straight t)
|
||||
|
||||
(use-package gleam-mode
|
||||
:requires (tree-sitter-indent)
|
||||
:requires (tree-sitter-indent lsp column-enforce-mode)
|
||||
:straight '(:type git
|
||||
:host github
|
||||
:repo "gleam-lang/gleam-mode"
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
:host github
|
||||
:repo "leanprover/lean4-mode"
|
||||
:files ("*.el" "data"))
|
||||
:requires (lsp)
|
||||
:defer t)
|
||||
|
||||
(defun activate-lean-mode ()
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
(add-to-list 'auto-mode-alist '("\\.graphqls\\'" . graphql-mode))
|
||||
|
||||
;; Yaml
|
||||
(use-package yaml-mode :straight t :defer t)
|
||||
(use-package yaml-mode :straight t :defer t :requires (lsp))
|
||||
|
||||
(defun +custom-lang-yaml/activate-yaml-mode ()
|
||||
"Activate yaml-mode."
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
(use-package flycheck-rust
|
||||
:straight t
|
||||
:defer t
|
||||
:requires (rust-mode))
|
||||
:requires (rust-mode lsp))
|
||||
|
||||
(defun activate-rust-mode ()
|
||||
"All things for Rust mode."
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
(require '+custom-pkg-ctags "$HOME/.emacs.d/pkg/ctags.el")
|
||||
(require '+custom-pkg-prog-mode "$HOME/.emacs.d/pkg/prog-mode.el")
|
||||
|
||||
(use-package zig-mode :straight t :defer t)
|
||||
(use-package zig-mode :straight t :defer t :requires (lsp))
|
||||
|
||||
(defun activate-zig-mode ()
|
||||
"Goodies for editing zig files."
|
||||
|
|
|
|||
29
pkg/base.el
29
pkg/base.el
|
|
@ -54,9 +54,9 @@
|
|||
|
||||
;; #====================== Backup config #==============================
|
||||
(setq backup-directory-alist
|
||||
`((".*" . "~/.emacs/backups/auto-save-list")))
|
||||
`((".*" . "~/.emacs.d/backups/auto-save-list")))
|
||||
(setq auto-save-file-name-transforms
|
||||
`((".*", "~/.emacs/backups/auto-save-list" t)))
|
||||
`((".*", "~/.emacs.d/backups/auto-save-list" t)))
|
||||
|
||||
(setq backup-by-copying t)
|
||||
(setq delete-old-versions t
|
||||
|
|
@ -88,7 +88,9 @@
|
|||
|
||||
;;;;;;;;;;;;;;;;;;;;;; Tree sitter ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
(use-package tree-sitter :straight t)
|
||||
(use-package tree-sitter-langs :straight t)
|
||||
(use-package tree-sitter-langs :straight t :requires (tree-sitter))
|
||||
(use-package tree-sitter-indent :straight t)
|
||||
|
||||
(global-tree-sitter-mode)
|
||||
(add-hook 'tree-sitter-after-on-hook 'tree-sitter-hl-mode)
|
||||
|
||||
|
|
@ -119,23 +121,24 @@
|
|||
|
||||
;;;;;;;;;;;;;;;;; Treemacs
|
||||
(use-package treemacs :straight t :defer t)
|
||||
(use-package treemacs-all-the-icons :straight t)
|
||||
|
||||
(treemacs-load-theme "all-the-icons")
|
||||
(treemacs-project-follow-mode t)
|
||||
(use-package treemacs-all-the-icons :defer t :requires (treemacs) :straight t
|
||||
:config
|
||||
(treemacs-load-theme "all-the-icons")
|
||||
(treemacs-project-follow-mode t))
|
||||
|
||||
;;;;;;;;;;;;;;;;; Record frequency of different commands. Review them later
|
||||
(use-package keyfreq
|
||||
:defer t
|
||||
:straight t)
|
||||
|
||||
(keyfreq-mode t)
|
||||
(keyfreq-autosave-mode t)
|
||||
:straight t
|
||||
:config
|
||||
(keyfreq-mode t)
|
||||
(keyfreq-autosave-mode t))
|
||||
|
||||
;;;;;;;;;;;;;;;;; Show hints about key combinations
|
||||
(use-package which-key
|
||||
:defer t
|
||||
:straight t)
|
||||
:straight t
|
||||
:config (which-key-mode t))
|
||||
|
||||
;;;;;;;;;;;;;;;;; Use C-n to create a new line
|
||||
(setq next-line-add-newlines t)
|
||||
|
|
@ -144,7 +147,5 @@
|
|||
(setq-default bidi-paragraph-direction 'left-to-right
|
||||
bidi-inhibit-bpa t)
|
||||
|
||||
(which-key-mode t)
|
||||
|
||||
(provide '+custom-pkg-base)
|
||||
;;; base.el ends here
|
||||
|
|
|
|||
|
|
@ -10,10 +10,12 @@
|
|||
(use-package yasnippet-snippets
|
||||
:straight t
|
||||
:defer t
|
||||
:requires (yasnippet)
|
||||
:config
|
||||
(unbind-key "C-c & C-n" yas-minor-mode-map)
|
||||
(unbind-key "C-c & C-s" yas-minor-mode-map)
|
||||
(unbind-key "C-c & C-v" yas-minor-mode-map))
|
||||
(unbind-key "C-c & C-v" yas-minor-mode-map)
|
||||
(yas-global-mode t))
|
||||
|
||||
(use-package company
|
||||
:commands (company-indent-or-complete-common company-yasnippet)
|
||||
|
|
@ -25,11 +27,10 @@
|
|||
(use-package company-box
|
||||
:straight t
|
||||
:defer t
|
||||
:after company
|
||||
:requires (company)
|
||||
:hook (((company-mode) . company-box-mode)))
|
||||
|
||||
(global-company-mode t)
|
||||
(yas-global-mode t)
|
||||
|
||||
(setq-default
|
||||
company-minimum-prefix-length 3 ;; minimum prefix character number for auto complete.
|
||||
|
|
|
|||
|
|
@ -13,19 +13,19 @@
|
|||
(use-package dashboard
|
||||
:straight t
|
||||
:config
|
||||
(dashboard-setup-startup-hook))
|
||||
(dashboard-setup-startup-hook)
|
||||
|
||||
(setq dashboard-footer-messages
|
||||
(setq dashboard-footer-messages
|
||||
'("Happy coding!" "I showed you my source code, pls respond"))
|
||||
|
||||
(setq dashboard-startup-banner 'logo)
|
||||
(setq dashboard-projects-backend 'projectile)
|
||||
(setq dashboard-startup-banner 'logo)
|
||||
(setq dashboard-projects-backend 'projectile)
|
||||
|
||||
(setq dashboard-items '((recents . 5)
|
||||
(setq dashboard-items '((recents . 5)
|
||||
;; (bookmarks . 5)
|
||||
;; (agenda . 5)
|
||||
;; (registers . 5)
|
||||
(projects . 5)))
|
||||
(projects . 5))))
|
||||
|
||||
(provide '+custom-pkg-dashboard)
|
||||
;;; dashboard.el ends here
|
||||
|
|
|
|||
14
pkg/ivy.el
14
pkg/ivy.el
|
|
@ -5,9 +5,15 @@
|
|||
|
||||
(require '+custom-pkg-keys-mode "$HOME/.emacs.d/pkg/keys-mode.el")
|
||||
|
||||
(use-package counsel :straight t :defer t)
|
||||
(use-package swiper :straight t :defer t)
|
||||
|
||||
(use-package helpful :straight t :defer t)
|
||||
(use-package counsel :straight t :defer t :requires (helpful)
|
||||
:config
|
||||
;; Use helpful for showing Elisp documentation
|
||||
(setq counsel-describe-function-function #'helpful-callable)
|
||||
(setq counsel-describe-variable-function #'helpful-variable))
|
||||
|
||||
(use-package swiper :straight t :defer t)
|
||||
|
||||
(use-package ivy
|
||||
:requires (counsel swiper helpful)
|
||||
|
|
@ -19,10 +25,6 @@
|
|||
ivy-display-style 'fancy ;; Formatting style
|
||||
))
|
||||
|
||||
;; Use helpful for showing Elisp documentation
|
||||
(setq counsel-describe-function-function #'helpful-callable)
|
||||
(setq counsel-describe-variable-function #'helpful-variable)
|
||||
|
||||
(define-key +custom-keys-mode-map (kbd "C-c a") 'counsel-rg)
|
||||
(define-key +custom-keys-mode-map (kbd "C-c t") 'counsel-find-file)
|
||||
(define-key +custom-keys-mode-map (kbd "C-c C-s") 'swiper) ;; Find things by regexp
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
;;; Code:
|
||||
|
||||
(define-minor-mode +custom-keys-mode
|
||||
"Minor mode for all of my personal key bindings"
|
||||
"Minor mode for all of my personal key bindings."
|
||||
:global t
|
||||
:keymap (make-sparse-keymap))
|
||||
|
||||
|
|
|
|||
24
pkg/lsp.el
24
pkg/lsp.el
|
|
@ -16,6 +16,14 @@
|
|||
lsp-lens-enable nil
|
||||
lsp-lens-mode nil
|
||||
read-process-output-max (* 1024 1024 2)
|
||||
;; Disable the piece of shit vue LSP server. It activates itself in every
|
||||
;; project with .js, .ts or .json file due to something called 'takeover
|
||||
;; mode' or 'hybrid mode' or some such.
|
||||
;; It would be okay, but it also doesn't work 99% of the time.
|
||||
|
||||
;; When needed, enable this hot garbage in dir-locals.el
|
||||
lsp-disabled-clients '(vue-semantic-server)
|
||||
lsp-log-io nil
|
||||
lsp-enable-file-watchers nil)
|
||||
(unbind-key "s-l =" lsp-mode-map)
|
||||
(unbind-key "s-l G" lsp-mode-map)
|
||||
|
|
@ -58,21 +66,13 @@
|
|||
(use-package lsp-ui
|
||||
:straight t
|
||||
:requires (lsp-mode)
|
||||
:defer t)
|
||||
|
||||
(setq lsp-ui-doc-enable t
|
||||
:defer t
|
||||
:config
|
||||
(setq lsp-ui-doc-enable t
|
||||
lsp-ui-header t
|
||||
lsp-ui-delay 0.5 ;; Wait half a second to display documentation
|
||||
lsp-ui-doc-position 'at-point
|
||||
lsp-ui-doc-include-signature t
|
||||
;; Disable the piece of shit vue LSP server. It activates itself in every
|
||||
;; project with .js, .ts or .json file due to something called 'takeover
|
||||
;; mode' or 'hybrid mode' or some such.
|
||||
;; It would be okay, but it also doesn't work 99% of the time.
|
||||
|
||||
;; When needed, enable this hot garbage in dir-locals.el
|
||||
lsp-disabled-clients '(vue-semantic-server)
|
||||
lsp-log-io nil)
|
||||
lsp-ui-doc-include-signature t))
|
||||
|
||||
;; Lsp debugger mode
|
||||
(use-package dap-mode
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@
|
|||
|
||||
;; Ensure indentation in steps:
|
||||
(defun set-indent (step)
|
||||
"Set indentation to X STEPs."
|
||||
"Set indentation to STEP."
|
||||
(interactive "NNumber of columns for one step: ")
|
||||
(setq-local tab-width step)
|
||||
(setq-local tab-stop-list (number-sequence step 200 step)))
|
||||
|
|
@ -79,6 +79,5 @@
|
|||
;; Formatter for many files
|
||||
(use-package apheleia :straight t :defer t)
|
||||
|
||||
|
||||
(provide '+custom-pkg-prog-mode)
|
||||
;;; prog-mode ends here
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
:straight t
|
||||
:config (setq-default
|
||||
;; Save history to a specific folder
|
||||
undo-tree-history-directory-alist '(("." . "~/.emacs/backups/undo-tree"))
|
||||
undo-tree-history-directory-alist '(("." . "~/.emacs.d/backups/undo-tree"))
|
||||
;; Show diff
|
||||
undo-tree-visualizer-diff t
|
||||
;; Show timestamps
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
;;; Code:
|
||||
|
||||
(require 'base16-theme)
|
||||
(use-package base16-theme :straight t :defer t)
|
||||
|
||||
(defvar base16-harmonic-light-modified-colors
|
||||
'(:base00 "#f7f9fb"
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
;;; Code:
|
||||
|
||||
(require 'base16-theme)
|
||||
(use-package base16-theme :straight t :defer t)
|
||||
|
||||
(defvar base16-summerfruit-light-modified-colors
|
||||
'(:base00 "#fdfcfa"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
;; Based on harmonic-dark theme by Jannik Seibert (https://github.com/janniks)
|
||||
;;; Code:
|
||||
|
||||
(require 'base16-theme)
|
||||
(use-package base16-theme :straight t :defer t)
|
||||
|
||||
(defvar base16-not-harmonic-colors
|
||||
'(:base00 "#102941"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue