removing straight and using nix
This commit is contained in:
parent
d847efda5f
commit
16b82d6fbc
3 changed files with 34 additions and 63 deletions
58
init.el
58
init.el
|
@ -88,26 +88,13 @@
|
|||
(setq initial-major-mode 'org-mode)
|
||||
(setq initial-scratch-message "#+TITLE: SCRATCH\n#+DESCRIPTION: This buffer is for temporary things")
|
||||
|
||||
(setq straight-fix-org t)
|
||||
(setq straight-check-for-modifications '(check-on-save find-when-checking))
|
||||
(defvar bootstrap-version)
|
||||
(let ((bootstrap-file
|
||||
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
|
||||
(bootstrap-version 5))
|
||||
(unless (file-exists-p bootstrap-file)
|
||||
(with-current-buffer
|
||||
(url-retrieve-synchronously
|
||||
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
|
||||
'silent 'inhibit-cookies)
|
||||
(goto-char (point-max))
|
||||
(eval-print-last-sexp)))
|
||||
(load bootstrap-file nil 'nomessage))
|
||||
(dolist (path load-path)
|
||||
(when (string-match-p "/nix/store/[a-z0-9]\\{32\\}-emacs-packages-deps.*" path)
|
||||
(dolist (autoload-file (directory-files path t "-autoloads.el"))
|
||||
(with-demoted-errors "init.el error: %s"
|
||||
(load autoload-file nil t)))))
|
||||
|
||||
(setq straight-use-package-by-default t)
|
||||
|
||||
(straight-use-package 'use-package)
|
||||
(setq use-package-verbose t)
|
||||
(defalias 'yes-or-no-p 'y-or-n-p)
|
||||
(eval-when-compile (require 'use-package))
|
||||
|
||||
(use-package command-log-mode
|
||||
:commands command-log-mode)
|
||||
|
@ -344,7 +331,6 @@
|
|||
visual-fill-column-center-text t))
|
||||
|
||||
(use-package org
|
||||
:straight t
|
||||
:defer 1
|
||||
:config
|
||||
(setq org-startup-indented t
|
||||
|
@ -632,7 +618,6 @@
|
|||
|
||||
(use-package websocket)
|
||||
(use-package org-roam-ui
|
||||
:straight (:host github :repo "org-roam/org-roam-ui" :files ("*.el" "out"))
|
||||
:after org-roam
|
||||
:config
|
||||
(setq org-roam-ui-sync-theme t
|
||||
|
@ -661,7 +646,6 @@
|
|||
))
|
||||
|
||||
(use-package org-modern
|
||||
:straight (:host github :repo "minad/org-modern")
|
||||
:config
|
||||
|
||||
(custom-set-faces
|
||||
|
@ -1400,17 +1384,14 @@ targets."
|
|||
:hook
|
||||
(c++-mode . eglot))
|
||||
|
||||
(use-package consult-eglot)
|
||||
|
||||
(use-package cmake-mode
|
||||
:mode ("\\CMakeLists.txt\\'" . cmake-mode))
|
||||
|
||||
(use-package fennel-mode
|
||||
:mode ("\\.fnl\\'" . fennel-mode))
|
||||
|
||||
(use-package friar
|
||||
:straight (:host github :repo "warreq/friar" :branch "master"
|
||||
:files (:defaults "*.lua" "*.fnl"))
|
||||
:after fennel-mode)
|
||||
|
||||
(use-package yaml-mode
|
||||
:mode ("\\.yml\\'" . yaml-mode))
|
||||
|
||||
|
@ -1465,7 +1446,6 @@ targets."
|
|||
"gr" 'flutter-run-or-hot-reload
|
||||
"gR" 'lsp-dart-dap-flutter-hot-restart))
|
||||
|
||||
(use-package lsp-dart)
|
||||
(use-package flutter
|
||||
:after dart
|
||||
:general
|
||||
|
@ -1482,7 +1462,6 @@ targets."
|
|||
|
||||
(use-package dired
|
||||
:ensure nil
|
||||
:straight nil
|
||||
:config
|
||||
(defun chris/dired-open-xdg ()
|
||||
"Open the file-at-point in the appropriate program"
|
||||
|
@ -1570,7 +1549,6 @@ targets."
|
|||
|
||||
(use-package mu4e
|
||||
:load-path "/usr/share/emacs/site-lisp/mu4e/"
|
||||
:straight nil
|
||||
:init
|
||||
(setq mu4e-maildir "~/Maildir"
|
||||
user-full-name "Chris Cochrun"
|
||||
|
@ -1844,7 +1822,6 @@ targets."
|
|||
|
||||
(use-package eshell
|
||||
:ensure nil
|
||||
:straight nil
|
||||
:config
|
||||
(require 'em-tramp)
|
||||
|
||||
|
@ -1985,7 +1962,6 @@ targets."
|
|||
(sly-connect "localhost" 4006)))
|
||||
|
||||
(use-package pdf-tools
|
||||
:straight nil
|
||||
:mode ("\\.pdf\\'" . pdf-view-mode)
|
||||
:init
|
||||
;; (setq pdf-info-epdfinfo-program "/nix/store/6pc8vs42xbfah1h8h050a77p7vpr12kc-emacs-packages-deps/share/emacs/site-lisp/elpa/pdf-tools-20220823/epdfinfo"
|
||||
|
@ -2319,11 +2295,9 @@ interfere with the default `bongo-playlist-buffer'."
|
|||
(chris/leader-keys
|
||||
"st" 'password-store-otp-token-copy))
|
||||
|
||||
(use-package plz
|
||||
:straight (plz :type git :host github :repo "alphapapa/plz.el"))
|
||||
(use-package plz)
|
||||
|
||||
(use-package ement
|
||||
:straight (ement :type git :host github :repo "alphapapa/ement.el")
|
||||
:config
|
||||
(setq ement-room-images t
|
||||
ement-save-sessions t)
|
||||
|
@ -2381,17 +2355,3 @@ interfere with the default `bongo-playlist-buffer'."
|
|||
gcmh-verbose nil))
|
||||
|
||||
(setq warning-suppress-types '((comp)))
|
||||
(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.
|
||||
'(safe-local-variable-values
|
||||
'((projectile-project-run-cmd . "./build/bin/presenter")
|
||||
(projectile-project-compilation-cmd . "cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -B build/ . && make -j8 --dir build/ && rm -rf ~/.cache/librepresenter/LibrePresenter/qmlcache/"))))
|
||||
(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.
|
||||
'(org-modern-tag ((t :background "#9aedfe" :foreground "#282a36"))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue