IC
This commit is contained in:
@@ -0,0 +1,148 @@
|
||||
;;; init.el -*- lexical-binding: t; -*-
|
||||
;;elpaca
|
||||
(defvar elpaca-installer-version 0.12)
|
||||
(defvar elpaca-directory (expand-file-name "elpaca/" user-emacs-directory))
|
||||
(defvar elpaca-builds-directory (expand-file-name "builds/" elpaca-directory))
|
||||
(defvar elpaca-sources-directory (expand-file-name "sources/" elpaca-directory))
|
||||
(defvar elpaca-order '(elpaca :repo "https://github.com/progfolio/elpaca.git"
|
||||
:ref nil :depth 1 :inherit ignore
|
||||
:files (:defaults "elpaca-test.el" (:exclude "extensions"))
|
||||
:build (:not elpaca-activate)))
|
||||
(let* ((repo (expand-file-name "elpaca/" elpaca-sources-directory))
|
||||
(build (expand-file-name "elpaca/" elpaca-builds-directory))
|
||||
(order (cdr elpaca-order))
|
||||
(default-directory repo))
|
||||
(add-to-list 'load-path (if (file-exists-p build) build repo))
|
||||
(unless (file-exists-p repo)
|
||||
(make-directory repo t)
|
||||
(when (<= emacs-major-version 28) (require 'subr-x))
|
||||
(condition-case-unless-debug err
|
||||
(if-let* ((buffer (pop-to-buffer-same-window "*elpaca-bootstrap*"))
|
||||
((zerop (apply #'call-process `("git" nil ,buffer t "clone"
|
||||
,@(when-let* ((depth (plist-get order :depth)))
|
||||
(list (format "--depth=%d" depth) "--no-single-branch"))
|
||||
,(plist-get order :repo) ,repo))))
|
||||
((zerop (call-process "git" nil buffer t "checkout"
|
||||
(or (plist-get order :ref) "--"))))
|
||||
(emacs (concat invocation-directory invocation-name))
|
||||
((zerop (call-process emacs nil buffer nil "-Q" "-L" "." "--batch"
|
||||
"--eval" "(byte-recompile-directory \".\" 0 'force)")))
|
||||
((require 'elpaca))
|
||||
((elpaca-generate-autoloads "elpaca" repo)))
|
||||
(progn (message "%s" (buffer-string)) (kill-buffer buffer))
|
||||
(error "%s" (with-current-buffer buffer (buffer-string))))
|
||||
((error) (warn "%s" err) (delete-directory repo 'recursive))))
|
||||
(unless (require 'elpaca-autoloads nil t)
|
||||
(require 'elpaca)
|
||||
(elpaca-generate-autoloads "elpaca" repo)
|
||||
(let ((load-source-file-function nil)) (load "./elpaca-autoloads"))))
|
||||
(add-hook 'after-init-hook #'elpaca-process-queues)
|
||||
(elpaca `(,@elpaca-order))
|
||||
(elpaca-wait)
|
||||
|
||||
;; emacs 30 fix
|
||||
;;(add-to-list 'elpaca-ignored-dependencies 'compat)
|
||||
|
||||
;; ==============================================================================
|
||||
;; CORE UI & INTERFACE
|
||||
;; ==============================================================================
|
||||
(elpaca compat)
|
||||
(elpaca general) ;; Keybindings
|
||||
(elpaca vertico) ;; Vertical completion
|
||||
(elpaca orderless) ;; Filtering for Consult/Vertico
|
||||
(elpaca marginalia) ;; Annotations in the minibuffer
|
||||
(elpaca corfu) ;; In-buffer completion
|
||||
(elpaca nerd-icons)
|
||||
(elpaca nerd-icons-completion)
|
||||
(elpaca nerd-icons-dired)
|
||||
(elpaca nerd-icons-corfu)
|
||||
(elpaca-wait) ;; Ensure UI is ready before loading tools
|
||||
|
||||
;; ==============================================================================
|
||||
;; EDITING & NAVIGATION
|
||||
;; ==============================================================================
|
||||
(elpaca meow) ;; Modal editing
|
||||
(elpaca avy) ;; Fast jumping
|
||||
(elpaca smartparens)
|
||||
(elpaca expand-region)
|
||||
(elpaca undo-fu)
|
||||
(elpaca vundo) ;; Visual undo tree
|
||||
(elpaca xclip)
|
||||
(elpaca clipetty)
|
||||
(elpaca embark) ;; Contextual actions
|
||||
(elpaca kirigami) ;; Selection/Editing
|
||||
(elpaca jinx) ;; Fast duplicate lines
|
||||
|
||||
;; ==============================================================================
|
||||
;; CODE ANALYSIS & VISUALS
|
||||
;; ==============================================================================
|
||||
(elpaca treesit-auto)
|
||||
(elpaca treesit-fold)
|
||||
(elpaca highlight-quoted)
|
||||
(elpaca highlight-defined)
|
||||
(elpaca color-identifiers-mode)
|
||||
(elpaca rainbow-delimiters)
|
||||
(elpaca indent-bars)
|
||||
(elpaca outline-indent)
|
||||
|
||||
;; ==============================================================================
|
||||
;; LSP & DEVELOPMENT
|
||||
;; ==============================================================================
|
||||
(elpaca mason) ;; LSP server manager
|
||||
(elpaca lsp-mode)
|
||||
(elpaca lsp-ui)
|
||||
(elpaca consult-lsp)
|
||||
|
||||
;; ==============================================================================
|
||||
;; LANGUAGE MODES
|
||||
;; ==============================================================================
|
||||
(elpaca kdl-mode)
|
||||
(elpaca csv-mode)
|
||||
|
||||
;; ==============================================================================
|
||||
;; UTILITIES
|
||||
;; ==============================================================================
|
||||
(elpaca consult) ;; Enhanced search/navigation
|
||||
(elpaca vterm)
|
||||
(elpaca vterm-toggle)
|
||||
(elpaca colorful-mode)
|
||||
;;(elpaca dirvish) ;;broken on emacs 30
|
||||
(elpaca transient)
|
||||
(elpaca magit)
|
||||
(elpaca casual)
|
||||
;; ==============================================================================
|
||||
;; KNOWLEDGE MANAGEMENT (ZK/DENOTE)
|
||||
;; ==============================================================================
|
||||
(elpaca denote)
|
||||
(elpaca consult-denote)
|
||||
(elpaca denote-menu)
|
||||
(elpaca zk)
|
||||
(elpaca zk-index)
|
||||
(elpaca-wait)
|
||||
|
||||
;; ==============================================================================
|
||||
;; ELPACA CONFIGURATION
|
||||
;; ==============================================================================
|
||||
(elpaca elpaca-use-package
|
||||
;; Automatically adds :ensure t and :defer t to use-package declarations
|
||||
(elpaca-use-package-mode)
|
||||
(setq elpaca-use-package-by-default t))
|
||||
|
||||
(elpaca-wait)
|
||||
|
||||
|
||||
(load (expand-file-name "config.el" user-emacs-directory))
|
||||
(custom-set-variables
|
||||
;; custom-set-variables was added by Custom.
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
;; Your init file should contain only one such instance.
|
||||
;; If there is more than one, they won't work right.
|
||||
'(custom-safe-themes
|
||||
'("faaccacbb368285948d610df3814315fa5f7727358ddb77ad8dd16d15cd58d9f"
|
||||
default)))
|
||||
(custom-set-faces
|
||||
;; custom-set-faces was added by Custom.
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
;; Your init file should contain only one such instance.
|
||||
;; If there is more than one, they won't work right.
|
||||
)
|
||||
Reference in New Issue
Block a user