Compare commits
3
Commits
20fbfcc9ce
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
52b9dfa9c2 | ||
|
|
020d99c7a8 | ||
|
|
5381c1b006 |
No files matched your search
@@ -65,6 +65,7 @@
|
||||
syd/wgrep
|
||||
syd/nix
|
||||
syd/backup
|
||||
syd/asciidoc
|
||||
syd/flycheck
|
||||
syd/agda
|
||||
syd/rust
|
||||
@@ -77,5 +78,6 @@
|
||||
syd/transient
|
||||
syd/scheme
|
||||
syd/bookmark
|
||||
syd/markdown
|
||||
syd/haskell
|
||||
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; -*-
|
||||
|
||||
(require 'syd/base)
|
||||
(require 'syd/prose)
|
||||
(require 'syd/edit-indirect)
|
||||
|
||||
(use-package markdown-mode
|
||||
:config
|
||||
:mode ("README\\.md\\'" . gfm-mode)
|
||||
:custom ((markdown-header-scaling t))
|
||||
:init
|
||||
(add-hook 'markdown-mode-hook #'syd-prose-mode))
|
||||
|
||||
(provide 'syd/markdown)
|
||||
@@ -51,5 +51,4 @@
|
||||
"A minor mode for writing prose."
|
||||
:lighter nil)
|
||||
|
||||
|
||||
(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";
|
||||
};
|
||||
}
|
||||
@@ -9,6 +9,8 @@ in {
|
||||
config = lib.mkIf cfg.enable
|
||||
# https://github.com/dschrempf/haskell-ts-mode/blob/1c236f00dc214e546124a5dac90902ba62500c15/flake.nix#L40-L55
|
||||
(let
|
||||
ts-asciidoc = pkgs.callPackage ./tree-sitter-asciidoc.nix {};
|
||||
|
||||
grammars = pkgs.tree-sitter-grammars.overrideScope (ts-final: ts-prev: {
|
||||
tree-sitter-haskell = ts-prev.tree-sitter-haskell.overrideAttrs (prev:
|
||||
let rev = "1ad6077a1fb776c255836e00aeb6da57ba564b6a";
|
||||
@@ -32,7 +34,10 @@ in {
|
||||
in {
|
||||
sydnix.emacs.emacsPackages = epkgs: [
|
||||
(epkgs.treesit-grammars.with-grammars (_ps:
|
||||
grammars.allGrammars
|
||||
grammars.allGrammars ++ [
|
||||
ts-asciidoc.tree-sitter-asciidoc
|
||||
ts-asciidoc.tree-sitter-asciidoc-inline
|
||||
]
|
||||
))
|
||||
];
|
||||
});
|
||||
|
||||
@@ -22,12 +22,23 @@ in {
|
||||
settings = {
|
||||
# Bind QuickPhrase to `s-;`.
|
||||
addons."quickphrase".sections = {
|
||||
# 나는 이모지만 원하니까 영어를 추천하지 맒.
|
||||
globalOptions.Spell = false;
|
||||
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 = {
|
||||
# Disable shift to toggle. I accidentally press it all
|
||||
# the time. 날 미치게 만들어요.
|
||||
# Disable the tapping of shift to toggle an input method.
|
||||
# I accidentally press it all the time. 미치겠네, 진짜.
|
||||
Hotkey.AltTriggerKeys = "";
|
||||
};
|
||||
|
||||
@@ -44,8 +55,8 @@ in {
|
||||
DefaultIM = "sydmath";
|
||||
};
|
||||
"Groups/0/Items/0".Name = "keyboard-us";
|
||||
"Groups/0/Items/1".Name = "sydmath";
|
||||
"Groups/0/Items/2".Name = "hangul";
|
||||
"Groups/0/Items/1".Name = "hangul";
|
||||
"Groups/0/Items/2".Name = "sydmath";
|
||||
"Groups/0/Items/3".Name = "ipa-x-sampa";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -58,7 +58,6 @@ in {
|
||||
server = {
|
||||
ROOT_URL = "https://git.deertopia.net/";
|
||||
HTTP_PORT = 3000;
|
||||
DOMAIN = "deertopia.net";
|
||||
};
|
||||
service = {
|
||||
DISABLE_REGISTRATION = true;
|
||||
|
||||
Reference in new issue
Block a user