Switch to straight.el
This commit is contained in:
parent
23ac9970f4
commit
85ddfaa02d
2 changed files with 50 additions and 50 deletions
|
@ -7,37 +7,28 @@
|
||||||
|
|
||||||
(add-to-list 'load-path "~/.emacs.d/custom")
|
(add-to-list 'load-path "~/.emacs.d/custom")
|
||||||
|
|
||||||
(require 'package)
|
(defvar bootstrap-version)
|
||||||
(add-to-list 'package-archives
|
(let ((bootstrap-file
|
||||||
'(
|
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
|
||||||
"melpa" . "https://melpa.org/packages/") t)
|
(bootstrap-version 5))
|
||||||
(add-to-list 'package-archives
|
(unless (file-exists-p bootstrap-file)
|
||||||
'("org" . "https://orgmode.org/elpa/")
|
(with-current-buffer
|
||||||
t)
|
(url-retrieve-synchronously
|
||||||
(package-initialize)
|
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
|
||||||
(unless package-archive-contents
|
'silent 'inhibit-cookies)
|
||||||
(package-refresh-contents))
|
(goto-char (point-max))
|
||||||
|
(eval-print-last-sexp)))
|
||||||
|
(load bootstrap-file nil 'nomessage))
|
||||||
|
|
||||||
(unless (package-installed-p 'use-package)
|
(straight-use-package 'use-package)
|
||||||
(package-refresh-contents)
|
|
||||||
(package-install 'use-package))
|
|
||||||
|
|
||||||
(eval-when-compile
|
(straight-use-package 'no-littering)
|
||||||
(require 'use-package))
|
(require 'no-littering)
|
||||||
|
(require 'recentf)
|
||||||
(use-package no-littering
|
(add-to-list 'recentf-exclude no-littering-var-directory)
|
||||||
:ensure t
|
(add-to-list 'recentf-exclude no-littering-etc-directory)
|
||||||
:config
|
(setq auto-save-file-name-transforms
|
||||||
(require 'recentf)
|
`((".*" ,(no-littering-expand-var-file-name "auto-save/") t)))
|
||||||
(eval-when-compile (defvar recentf-exclude))
|
|
||||||
(add-to-list 'recentf-exclude no-littering-var-directory)
|
|
||||||
(add-to-list 'recentf-exclude no-littering-etc-directory)
|
|
||||||
(setq auto-save-file-name-transforms
|
|
||||||
`((".*" ,(no-littering-expand-var-file-name "auto-save/") t)))
|
|
||||||
)
|
|
||||||
|
|
||||||
(require 'use-package-ensure)
|
|
||||||
(setq use-package-always-ensure t)
|
|
||||||
|
|
||||||
;; Use UTF-8 pls
|
;; Use UTF-8 pls
|
||||||
(prefer-coding-system 'utf-8)
|
(prefer-coding-system 'utf-8)
|
||||||
|
@ -58,24 +49,21 @@
|
||||||
'(display-line-numbers-grow-only t)
|
'(display-line-numbers-grow-only t)
|
||||||
'(display-line-numbers-type 'visual)
|
'(display-line-numbers-type 'visual)
|
||||||
'(display-line-numbers-width-start t)
|
'(display-line-numbers-width-start t)
|
||||||
|
'(epa-file-select-keys 'silent)
|
||||||
'(epg-pinentry-mode 'loopback)
|
'(epg-pinentry-mode 'loopback)
|
||||||
'(evil-cross-lines t)
|
'(evil-cross-lines t)
|
||||||
'(global-whitespace-mode t)
|
'(global-whitespace-mode t)
|
||||||
'(indent-tabs-mode nil)
|
'(indent-tabs-mode nil)
|
||||||
'(inhibit-startup-screen t)
|
'(inhibit-startup-screen t)
|
||||||
'(org-edit-src-content-indentation 0)
|
'(org-edit-src-content-indentation 0)
|
||||||
|
'(org-roam-encrypt-files t)
|
||||||
'(org-src-preserve-indentation t)
|
'(org-src-preserve-indentation t)
|
||||||
'(package-archives
|
|
||||||
'(("gnu" . "https://elpa.gnu.org/packages/")
|
|
||||||
("melpa" . "https://melpa.org/packages/")
|
|
||||||
("org" . "https://orgmode.org/elpa/")))
|
|
||||||
'(package-selected-packages
|
|
||||||
'(dockerfile-mode systemd apache-mode magit-delta go-mode org-roam ox-jira consult embark-consult embark selectrum-prescient prescient marginalia consult-flycheck consult-selectrum selectrum lua-mode lsp-mode yaml-mode evil-lispy treemacs-magit treemacs-evil treemacs lsp-pyright lsp-ui rustic flycheck origami groovy-mode avy editorconfig org-crypt tree-sitter-langs tree-sitter centaur-tabs dashboard page-break-lines wakatime-mode super-save ox-pandoc evil-surround evil-collection undo-tree toc-org evil-org org-plus-contrib evil-goggles evil-expat evil-commentary auto-package-update lispy smartparens which-key git-gutter rainbow-delimiters auto-complete-distel auto-complete evil magit evil-magit))
|
|
||||||
'(prescient-filter-method '(literal regexp initialism fuzzy))
|
'(prescient-filter-method '(literal regexp initialism fuzzy))
|
||||||
'(ring-bell-function 'ignore)
|
'(ring-bell-function 'ignore)
|
||||||
'(rustic-format-trigger 'on-compile)
|
'(rustic-format-trigger 'on-compile)
|
||||||
'(rustic-indent-method-chain t)
|
'(rustic-indent-method-chain t)
|
||||||
'(rustic-indent-where-clause t)
|
'(rustic-indent-where-clause t)
|
||||||
|
'(straight-use-package-by-default t)
|
||||||
'(treemacs-collapse-dirs 3)
|
'(treemacs-collapse-dirs 3)
|
||||||
'(treemacs-filewatch-mode t)
|
'(treemacs-filewatch-mode t)
|
||||||
'(treemacs-follow-mode t)
|
'(treemacs-follow-mode t)
|
||||||
|
@ -105,6 +93,7 @@
|
||||||
'(evil-goggles-undo-redo-remove-face ((t (:inherit diff-removed))))
|
'(evil-goggles-undo-redo-remove-face ((t (:inherit diff-removed))))
|
||||||
'(evil-goggles-yank-face ((t (:inherit diff-changed))))
|
'(evil-goggles-yank-face ((t (:inherit diff-changed))))
|
||||||
'(italic ((t (:slant italic :family "Dank Mono"))))
|
'(italic ((t (:slant italic :family "Dank Mono"))))
|
||||||
|
'(magit-diff-hunk-heading-highlight ((t (:extend t :background "light green"))))
|
||||||
'(whitespace-tab ((t (:inherit default :foreground "#65737d")))))
|
'(whitespace-tab ((t (:inherit default :foreground "#65737d")))))
|
||||||
|
|
||||||
;; auto-package-update
|
;; auto-package-update
|
||||||
|
@ -198,6 +187,8 @@
|
||||||
:config
|
:config
|
||||||
(evil-define-key 'normal 'global (kbd "<leader>a") 'avy-goto-char-timer))
|
(evil-define-key 'normal 'global (kbd "<leader>a") 'avy-goto-char-timer))
|
||||||
|
|
||||||
|
(use-package dash)
|
||||||
|
|
||||||
;; Magit
|
;; Magit
|
||||||
(use-package magit
|
(use-package magit
|
||||||
:config
|
:config
|
||||||
|
@ -310,7 +301,8 @@
|
||||||
;; Org Mode
|
;; Org Mode
|
||||||
(use-package org
|
(use-package org
|
||||||
:mode (("\\.org$" . org-mode))
|
:mode (("\\.org$" . org-mode))
|
||||||
:ensure org-plus-contrib
|
:ensure org
|
||||||
|
:pin gnu
|
||||||
:config
|
:config
|
||||||
(evil-define-key 'normal 'global (kbd "<leader> SPC s") 'org-store-link)
|
(evil-define-key 'normal 'global (kbd "<leader> SPC s") 'org-store-link)
|
||||||
(evil-define-key 'normal 'global (kbd "<leader> SPC a") 'org-agenda)
|
(evil-define-key 'normal 'global (kbd "<leader> SPC a") 'org-agenda)
|
||||||
|
@ -326,21 +318,26 @@
|
||||||
(setq org-roam-index-file "Index")
|
(setq org-roam-index-file "Index")
|
||||||
(add-hook 'after-init-hook 'org-roam-mode))
|
(add-hook 'after-init-hook 'org-roam-mode))
|
||||||
|
|
||||||
(use-package epa-file
|
(setq epa-file-encrypt-to '("anthony@anthonycicchetti.com"))
|
||||||
:ensure nil
|
;; (use-package epa-file
|
||||||
:config
|
;; :ensure nil
|
||||||
(setq epa-file-encrypt-to '("anthony@anthonycicchetti.com"))
|
;; :config
|
||||||
:custom
|
;; (setq epa-file-encrypt-to '("anthony@anthonycicchetti.com"))
|
||||||
(epa-file-select-keys 'silent))
|
;; :custom
|
||||||
|
;; (epa-file-select-keys 'silent))
|
||||||
|
|
||||||
(use-package org-crypt
|
(require 'org-crypt)
|
||||||
:ensure nil ;; included with org-mode
|
(org-crypt-use-before-save-magic)
|
||||||
:after org
|
(setq org-tags-exclude-from-inheritance '("crypt"))
|
||||||
:config
|
(setq org-crypt-key "anthony@anthonycicchetti.com")
|
||||||
(org-crypt-use-before-save-magic)
|
;; (use-package org-crypt
|
||||||
(setq org-tags-exclude-from-inheritance '("crypt"))
|
;; :ensure nil ;; included with org-mode
|
||||||
:custom
|
;; :after org
|
||||||
(org-crypt-key "anthony@anthonycicchetti.com"))
|
;; :config
|
||||||
|
;; (org-crypt-use-before-save-magic)
|
||||||
|
;; (setq org-tags-exclude-from-inheritance '("crypt"))
|
||||||
|
;; :custom
|
||||||
|
;; (org-crypt-key "anthony@anthonycicchetti.com"))
|
||||||
|
|
||||||
|
|
||||||
(use-package toc-org
|
(use-package toc-org
|
||||||
|
|
|
@ -5,3 +5,6 @@ vicmd_symbol = "[ƴ](bold yellow)"
|
||||||
|
|
||||||
[jobs]
|
[jobs]
|
||||||
symbol = "+"
|
symbol = "+"
|
||||||
|
|
||||||
|
[battery]
|
||||||
|
disabled = true
|
Loading…
Add table
Reference in a new issue