Compare commits

...
3 Commits
Author SHA1 Message Date
msyds 52b9dfa9c2 feat(emacs): asciidoc
build / build (push) Failing after 1m12s
2026-11-02 13:40:10 -07:00
msyds 020d99c7a8 chore(fcitx5): 새 설정 2026-11-02 08:02:10 -07:00
msyds 5381c1b006 chore: remove deprecated gitea setting 2026-11-02 07:53:12 -07:00
9 changed files with 92 additions and 25 deletions

No files matched your search

+2
View File
@@ -65,6 +65,7 @@
syd/wgrep syd/wgrep
syd/nix syd/nix
syd/backup syd/backup
syd/asciidoc
syd/flycheck syd/flycheck
syd/agda syd/agda
syd/rust syd/rust
@@ -77,5 +78,6 @@
syd/transient syd/transient
syd/scheme syd/scheme
syd/bookmark syd/bookmark
syd/markdown
syd/haskell syd/haskell
syd/qbe)) syd/qbe))
@@ -0,0 +1,11 @@
;; -*- lexical-binding: t; -*-
(require 'syd/base)
(require 'syd/prose)
(require 'syd/edit-indirect)
(use-package asciidoc-mode
:init
(add-hook 'asciidoc-mode-hook #'syd-prose-mode))
(provide 'syd/asciidoc)
@@ -0,0 +1,7 @@
;; -*- lexical-binding: t; -*-
(require 'syd/base)
(use-package edit-indirect)
(provide 'syd/edit-indirect)
@@ -1,9 +1,13 @@
;; -*- lexical-binding: t; -*- ;; -*- lexical-binding: t; -*-
(require 'syd/base) (require 'syd/base)
(require 'syd/prose)
(require 'syd/edit-indirect)
(use-package markdown-mode (use-package markdown-mode
:config :mode ("README\\.md\\'" . gfm-mode)
:custom ((markdown-header-scaling t))
:init
(add-hook 'markdown-mode-hook #'syd-prose-mode)) (add-hook 'markdown-mode-hook #'syd-prose-mode))
(provide 'syd/markdown) (provide 'syd/markdown)
@@ -51,5 +51,4 @@
"A minor mode for writing prose." "A minor mode for writing prose."
:lighter nil) :lighter nil)
(provide 'syd/prose) (provide 'syd/prose)
@@ -0,0 +1,29 @@
{ fetchFromGitHub
, tree-sitter
}:
let
version = "git";
repo = fetchFromGitHub {
owner = "cathaysia";
repo = "tree-sitter-asciidoc";
# tag = "v${version}";
rev = "882e43173427b831cd0d98ab3525501bed6ea214";
hash = "sha256-55wgct1QB7Sg6tReZHgMK+Mn4wL+p1YU/1WPPjeUMvc=";
};
in {
tree-sitter-asciidoc =
tree-sitter.buildGrammar {
language = "asciidoc";
inherit version;
src = "${repo}/tree-sitter-asciidoc";
};
tree-sitter-asciidoc-inline =
tree-sitter.buildGrammar {
language = "asciidoc_inline";
inherit version;
src = "${repo}/tree-sitter-asciidoc_inline";
};
}
+23 -18
View File
@@ -9,30 +9,35 @@ in {
config = lib.mkIf cfg.enable config = lib.mkIf cfg.enable
# https://github.com/dschrempf/haskell-ts-mode/blob/1c236f00dc214e546124a5dac90902ba62500c15/flake.nix#L40-L55 # https://github.com/dschrempf/haskell-ts-mode/blob/1c236f00dc214e546124a5dac90902ba62500c15/flake.nix#L40-L55
(let (let
ts-asciidoc = pkgs.callPackage ./tree-sitter-asciidoc.nix {};
grammars = pkgs.tree-sitter-grammars.overrideScope (ts-final: ts-prev: { grammars = pkgs.tree-sitter-grammars.overrideScope (ts-final: ts-prev: {
tree-sitter-haskell = ts-prev.tree-sitter-haskell.overrideAttrs (prev: tree-sitter-haskell = ts-prev.tree-sitter-haskell.overrideAttrs (prev:
let rev = "1ad6077a1fb776c255836e00aeb6da57ba564b6a"; let rev = "1ad6077a1fb776c255836e00aeb6da57ba564b6a";
in { in {
version = "unstable-2026-07-07-${builtins.substring 0 7 rev}"; version = "unstable-2026-07-07-${builtins.substring 0 7 rev}";
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {
owner = "dschrempf"; owner = "dschrempf";
repo = "tree-sitter-haskell"; repo = "tree-sitter-haskell";
inherit rev; inherit rev;
hash = "sha256-kC6HwImFRx5HUY7NDLAA0I/DaSstQ94dWxA9+lMx2gI="; hash = "sha256-kC6HwImFRx5HUY7NDLAA0I/DaSstQ94dWxA9+lMx2gI=";
}; };
nativeBuildInputs = (prev.nativeBuildInputs or [ ]) ++ [ nativeBuildInputs = (prev.nativeBuildInputs or [ ]) ++ [
pkgs.nodejs pkgs.nodejs
pkgs.tree-sitter pkgs.tree-sitter
]; ];
preBuild = '' preBuild = ''
tree-sitter generate tree-sitter generate
''; '';
}); });
}); });
in { in {
sydnix.emacs.emacsPackages = epkgs: [ sydnix.emacs.emacsPackages = epkgs: [
(epkgs.treesit-grammars.with-grammars (_ps: (epkgs.treesit-grammars.with-grammars (_ps:
grammars.allGrammars grammars.allGrammars ++ [
ts-asciidoc.tree-sitter-asciidoc
ts-asciidoc.tree-sitter-asciidoc-inline
]
)) ))
]; ];
}); });
+15 -4
View File
@@ -22,12 +22,23 @@ in {
settings = { settings = {
# Bind QuickPhrase to `s-;`. # Bind QuickPhrase to `s-;`.
addons."quickphrase".sections = { addons."quickphrase".sections = {
# 나는 이모지만 원하니까 영어를 추천하지 맒.
globalOptions.Spell = false;
TriggerKey."0" = "Super+semicolon"; TriggerKey."0" = "Super+semicolon";
}; };
# ⟨n⟩ 키를 눌러 ⟨n⟩번째 자판을 활성화함
addons."imselector".sections.SwitchKeyLocal =
lib.genAttrs'
[0 1 2 3 4]
(n: {
name = toString n;
value = "Control+Super+${toString (n+1)}";
});
globalOptions = { globalOptions = {
# Disable shift to toggle. I accidentally press it all # Disable the tapping of shift to toggle an input method.
# the time. 날 미치게 만들어요. # I accidentally press it all the time. 미치겠네, 진짜.
Hotkey.AltTriggerKeys = ""; Hotkey.AltTriggerKeys = "";
}; };
@@ -44,8 +55,8 @@ in {
DefaultIM = "sydmath"; DefaultIM = "sydmath";
}; };
"Groups/0/Items/0".Name = "keyboard-us"; "Groups/0/Items/0".Name = "keyboard-us";
"Groups/0/Items/1".Name = "sydmath"; "Groups/0/Items/1".Name = "hangul";
"Groups/0/Items/2".Name = "hangul"; "Groups/0/Items/2".Name = "sydmath";
"Groups/0/Items/3".Name = "ipa-x-sampa"; "Groups/0/Items/3".Name = "ipa-x-sampa";
}; };
}; };
-1
View File
@@ -58,7 +58,6 @@ in {
server = { server = {
ROOT_URL = "https://git.deertopia.net/"; ROOT_URL = "https://git.deertopia.net/";
HTTP_PORT = 3000; HTTP_PORT = 3000;
DOMAIN = "deertopia.net";
}; };
service = { service = {
DISABLE_REGISTRATION = true; DISABLE_REGISTRATION = true;