fufckk
This commit is contained in:
@@ -38,6 +38,32 @@ in {
|
||||
]);
|
||||
|
||||
my-tex = pkgs.texlive.combine {
|
||||
diagrams = pkgs.stdenvNoCC.mkDerivation (final: {
|
||||
pname = "diagrams-latex";
|
||||
version = "0.8.0.6-r3";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "diagrams";
|
||||
repo = "diagrams-builder";
|
||||
rev = "v${final.version}";
|
||||
hash = "sha256-/6vAxVWcwsPHh2im12zAD08b9VnsvOUXz/5mYsY7pK0=";
|
||||
};
|
||||
nativeBuildInputs = [ pkgs.texlive.combined.scheme-small ];
|
||||
passthru = {
|
||||
pkgs = [ final.finalPackage ];
|
||||
tlDeps = with pkgs.texlive; [
|
||||
latex
|
||||
moreverb
|
||||
];
|
||||
tlType = "run";
|
||||
};
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
dir="$out/tex/latex/diagrams-latex"
|
||||
mkdir -p "$dir"
|
||||
mv latex/diagrams-latex.sty "$dir"
|
||||
runHook postInstall
|
||||
'';
|
||||
});
|
||||
inherit (pkgs.texlive)
|
||||
scheme-basic # Set of common packages.
|
||||
fontspec
|
||||
@@ -56,6 +82,7 @@ in {
|
||||
collection-fontsrecommended # Essential fonts.
|
||||
etoolbox # For Org-mode exports.
|
||||
siunitx # Typesetting units.
|
||||
moderncv
|
||||
# Tufte-latex and its stupid fucking dependencies.
|
||||
tufte-latex
|
||||
xkeyval
|
||||
|
||||
@@ -177,4 +177,7 @@ form."
|
||||
(user-error (concat "Ignoring a call to `lsp-install-server'"
|
||||
" — tell the caller to use Nix!")))
|
||||
|
||||
(defun syd-str (sep &rest strs)
|
||||
(mapconcat #'identity strs sep))
|
||||
|
||||
(provide 'syd-prelude)
|
||||
|
||||
3
modules/home/users/crumb/emacs/projects
Normal file
3
modules/home/users/crumb/emacs/projects
Normal file
@@ -0,0 +1,3 @@
|
||||
;;; -*- lisp-data -*-
|
||||
(("/persist/dots/")
|
||||
("/persist/dots/modules/home/users/crumb/emacs/elpa/org-mode/"))
|
||||
1
modules/home/users/crumb/emacs/transient/history.el
Normal file
1
modules/home/users/crumb/emacs/transient/history.el
Normal file
@@ -0,0 +1 @@
|
||||
nil
|
||||
11
modules/home/users/msyds/emacs/bookmarks
Normal file
11
modules/home/users/msyds/emacs/bookmarks
Normal file
@@ -0,0 +1,11 @@
|
||||
;;;; Emacs Bookmark Format Version 1;;;; -*- coding: utf-8-emacs; mode: lisp-data -*-
|
||||
;;; This format is meant to be slightly human-readable;
|
||||
;;; nevertheless, you probably don't want to edit it.
|
||||
;;; -*- End Of Bookmark File Format Version Stamp -*-
|
||||
(("org-capture-last-stored"
|
||||
(filename . "~/org/20251016074609-hangul_flashcard_deck.org")
|
||||
(front-context-string . "\n* ㅏ\n\n- 아\n- =[ɐ]")
|
||||
(rear-context-string . " flashcard deck\n")
|
||||
(position . 97)
|
||||
(last-modified 26864 63527 795046 394000))
|
||||
)
|
||||
@@ -38,6 +38,7 @@
|
||||
syd/org/superstar
|
||||
syd/org/noter
|
||||
syd/org/tufte-latex
|
||||
syd/org/srs
|
||||
syd/smartparens
|
||||
syd/snippets
|
||||
syd/ptemplate
|
||||
|
||||
@@ -25,6 +25,9 @@
|
||||
"L r" #'syd-org-latex-preview-recompile-preamble
|
||||
"L c" #'org-latex-preview-clear-cache))
|
||||
|
||||
(defun syd-str (sep &rest strs)
|
||||
(mapconcat #'identity strs sep))
|
||||
|
||||
(use-package org-latex-preview
|
||||
:defer t
|
||||
:straight nil
|
||||
@@ -35,8 +38,32 @@
|
||||
(org-latex-preview-live-debounce 0.25)
|
||||
;; Increase size of previews.
|
||||
(org-latex-preview-appearance-options
|
||||
(plist-put org-latex-preview-appearance-options :zoom 1.4)))
|
||||
:hook (org-mode . org-latex-preview-mode))
|
||||
(plist-put org-latex-preview-appearance-options :zoom 1.2)))
|
||||
:hook (org-mode . org-latex-preview-mode)
|
||||
:config
|
||||
(add-to-list
|
||||
'org-latex-preview-process-alist
|
||||
`(dvisvgm
|
||||
:programs ("latex" "dvisvgm") :description "dvi > svg" :message
|
||||
"you need to install the programs: latex and dvisvgm."
|
||||
:image-input-type "dvi" :image-output-type "svg" :latex-compiler
|
||||
("%l -interaction nonstopmode -output-directory %o %f")
|
||||
:latex-precompiler
|
||||
("%l -output-directory %o -ini -jobname=%b \"&%L\" mylatexformat.ltx %f")
|
||||
:image-converter
|
||||
(,(syd-str
|
||||
" "
|
||||
"dvisvgm"
|
||||
"--page=1-"
|
||||
"--optimize"
|
||||
"--clipjoin"
|
||||
"--relative"
|
||||
"--no-fonts"
|
||||
"-v3"
|
||||
"--message='processing page {?pageno}: output written to {?svgpath}'"
|
||||
"--bbox=min"
|
||||
"-o %B-%%9p.svg"
|
||||
"%f")))))
|
||||
|
||||
(use-package org-contrib)
|
||||
|
||||
|
||||
23
modules/home/users/msyds/emacs/lisp/syd/org/srs.el
Normal file
23
modules/home/users/msyds/emacs/lisp/syd/org/srs.el
Normal file
@@ -0,0 +1,23 @@
|
||||
;; -*- lexical-binding: t; -*-
|
||||
|
||||
(require 'syd/base)
|
||||
(require 'syd/org)
|
||||
|
||||
(use-package org-srs
|
||||
:defer t
|
||||
:hook (org-mode . org-srs-embed-overlay-mode)
|
||||
:bind (:map org-mode-map
|
||||
("<f5>" . org-srs-review-rate-easy)
|
||||
("<f6>" . org-srs-review-rate-good)
|
||||
("<f7>" . org-srs-review-rate-hard)
|
||||
("<f8>" . org-srs-review-rate-again)))
|
||||
|
||||
(use-package org-srs
|
||||
:when (eq system-type 'android)
|
||||
:defer t
|
||||
:custom
|
||||
(org-srs-item-confirm #'org-srs-item-confirm-command)
|
||||
:config
|
||||
(org-srs-mouse-mode +1))
|
||||
|
||||
(provide 'syd/org/srs)
|
||||
@@ -22,14 +22,6 @@ in {
|
||||
];
|
||||
ignorePerms = true;
|
||||
};
|
||||
"Music" = {
|
||||
path = "~/Music";
|
||||
devices = [
|
||||
"deertopia"
|
||||
"sydpc"
|
||||
];
|
||||
ignorePerms = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user