This commit is contained in:
2025-11-23 04:06:17 -07:00
parent 721ac95a18
commit 17d8d96fb3
105 changed files with 96 additions and 2 deletions

2
modules/home/users/msyds/emacs.nix Normal file → Executable file
View File

@@ -20,6 +20,7 @@ in {
./emacs/nix/jinx.nix ./emacs/nix/jinx.nix
./emacs/nix/tufte-latex.nix ./emacs/nix/tufte-latex.nix
./emacs/nix/plex-latex.nix ./emacs/nix/plex-latex.nix
./emacs/nix/treesit.nix
]; ];
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
@@ -27,6 +28,7 @@ in {
jinx.enable = true; jinx.enable = true;
tufte-latex.enable = true; tufte-latex.enable = true;
plex-latex.enable = true; plex-latex.enable = true;
treesit.enable = true;
}; };
sydnix.emacs = { sydnix.emacs = {

0
modules/home/users/msyds/emacs/early-init.el Normal file → Executable file
View File

4
modules/home/users/msyds/emacs/init.el Normal file → Executable file
View File

@@ -57,4 +57,6 @@
syd/form-feed syd/form-feed
syd/scratch syd/scratch
syd/text syd/text
syd/wgrep)) syd/wgrep
syd/nix
syd/backup))

1
modules/home/users/msyds/emacs/lisp/syd/agda.el Normal file → Executable file
View File

@@ -54,7 +54,6 @@
(call-interactively #'agda2-goal-and-context) (call-interactively #'agda2-goal-and-context)
agda2-info-buffer) agda2-info-buffer)
;; DEPRECATED: Remove once syd-strategies is working.
(syd-handle 'agda2-mode (syd-handle 'agda2-mode
:docs #'syd-agda-lookup-documentation)) :docs #'syd-agda-lookup-documentation))

0
modules/home/users/msyds/emacs/lisp/syd/auto-save.el Normal file → Executable file
View File

View File

@@ -0,0 +1,30 @@
;;; -*- lexical-binding: t; -*-
(require 'syd/constants)
(setq backup-directory-alist
`(("." . ,(file-name-concat syd-data-dir "backup")))
auto-save-list-file-prefix (let ((dir (file-name-concat syd-cache-dir
"autosave/")))
(make-directory dir t)
dir)
;; Nil means untracked files under VC won't get backed up.
vc-make-backup-files t
;; Nil will clobber symlinks.
backup-by-copying t
;; Use versioned backups.
version-control t
;; Don't create ugly lockfiles. See
;; https://www.gnu.org/software/emacs/manual/html_node/emacs/Interlocking.html#Interlocking
;; This is a good feature, but not very relevant to a single-user system.
create-lockfiles nil
auto-save-file-name-transforms
;; Good grief, girl...
`(("\\`/[^/]*:\\([^/]*/\\)*\\([^/]*\\)\\'"
,(concat auto-save-list-file-prefix "tramp-\\2") t)
(".*"
,(file-name-concat syd-cache-dir "autosave") t))
kept-new-versions 5
delete-old-versions t)
(provide 'syd/backup)

0
modules/home/users/msyds/emacs/lisp/syd/base.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/clojure.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/comint.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/compilation.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/completion.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/constants.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/dash.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/dired.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/direnv.el Normal file → Executable file
View File

View File

View File

0
modules/home/users/msyds/emacs/lisp/syd/elpaca.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/emacs-lisp.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/escape.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/evil.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/fonts.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/form-feed.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/frame.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/general.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/grep.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/handle.el Normal file → Executable file
View File

View File

View File

0
modules/home/users/msyds/emacs/lisp/syd/kanagawa.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/keymaps.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/leader.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/ligature.el Normal file → Executable file
View File

View File

0
modules/home/users/msyds/emacs/lisp/syd/lisp.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/minibuffer.el Normal file → Executable file
View File

View File

@@ -0,0 +1,29 @@
;;; -*- lexical-binding: t -*-
(require 'syd/base)
(require 'syd/handle)
(require 'syd/popups)
(use-package nix-mode
;; :mode "\\.nix\\'"
:init
(add-to-list 'auto-mode-alist
(cons (rx "/flake.lock'")
(if (fboundp 'json-mode)
'json-mode
'js-mode)))
:config
;; (set-repl-handler! '(nix-mode nix-ts-mode) #'syd-nix-open-nix-repl)
;; Inform Smartparens and Evil-surround of Nix's alternative string syntax.
(with-eval-after-load 'smartparens
(sp-local-pair '(nix-mode nix-ts-mode) "''" "''"))
(syd-add-hook '(nix-mode-hook nix-ts-mode-hook)
(defun syd-nix--configure-evil-surround-h ()
(with-eval-after-load 'evil-surround
(push '(?Q . ("''" . "''"))
evil-surround-pairs-alist)))))
(use-package nix-ts-mode)
(provide 'syd/nix)

0
modules/home/users/msyds/emacs/lisp/syd/on.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/org.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/org/agenda.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/org/latex.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/org/noter.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/org/roam.el Normal file → Executable file
View File

View File

View File

0
modules/home/users/msyds/emacs/lisp/syd/org/srs.el Normal file → Executable file
View File

View File

View File

View File

0
modules/home/users/msyds/emacs/lisp/syd/pdf.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/popups.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/prelude.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/project.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/prose.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/ptemplate.el Normal file → Executable file
View File

View File

View File

View File

View File

View File

View File

View File

0
modules/home/users/msyds/emacs/lisp/syd/scratch.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/scrolling.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/smartparens.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/snippets.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/straight.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/text.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/tramp.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/undo-fu.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/use-package.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/vc.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/wgrep.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/lisp/syd/which-key.el Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/nix/jinx.nix Normal file → Executable file
View File

0
modules/home/users/msyds/emacs/nix/plex-latex.nix Normal file → Executable file
View File

View File

View File

@@ -0,0 +1,14 @@
{ config, lib, pkgs, ... }:
let cfg = config.sydnix.users.msyds.emacs.treesit;
in {
options.sydnix.users.msyds.emacs.treesit = {
enable = lib.mkEnableOption "Treesitter grammars";
};
config = lib.mkIf cfg.enable {
sydnix.emacs.emacsPackages = epkgs: [
epkgs.treesit-grammars.with-all-grammars
];
};
}

0
modules/home/users/msyds/emacs/nix/tufte-latex.nix Normal file → Executable file
View File

View File

@@ -0,0 +1,17 @@
;;; Automatically generated by recentf on Sun Nov 23 03:53:06 2025.
(setq recentf-list
'(
"~/org/20251111182118-path_induction.org"
"/persist/dots/modules/home/users/msyds/emacs/nix/plex-latex/syd-plex.sty"
"/persist/dots/modules/home/users/msyds/emacs.nix"
"/persist/dots/modules/home/users/msyds/emacs/nix/treesit.nix"
"/persist/dots/modules/home/users/msyds/emacs/nix/jinx.nix"
))
(setq recentf-filter-changer-current 'nil)
;; Local Variables:
;; coding: utf-8-emacs
;; End:

View File

View File

View File

View File

View File

View File

View File

View File

Some files were not shown because too many files have changed in this diff Show More