From 2691d73e04b1bd3424d4fc54e567b0f12bea58e7 Mon Sep 17 00:00:00 2001 From: cashmere Date: Sat, 12 Sep 2026 00:35:55 +0200 Subject: relic: 2026-09-12T00:36:02+02:00 --- config.org | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) (limited to 'config.org') diff --git a/config.org b/config.org index b92180a..e0c97a6 100644 --- a/config.org +++ b/config.org @@ -3000,12 +3000,6 @@ Python-powered shell. Major mode for =.xsh= files. *** xonsh tree-sitter mode -No dedicated xonsh grammar exists. Xonsh = python superset, so derive -=xonsh-ts-mode= from =python-ts-mode= — get python font-lock, indent, -imenu, navigation. Xonsh-specific syntax (=$()=, =@()=, =![]=, -=$VAR=) shows as python parse errors but stays readable. Fallback to -=xonsh-mode= when python grammar missing. - #+begin_src emacs-lisp (define-derived-mode xonsh-ts-mode python-ts-mode "Xonsh[ts]" "Major mode for xonsh, derived from `python-ts-mode'. @@ -3021,17 +3015,6 @@ Xonsh is a python superset; reuse python tree-sitter parser." *** xonsh org babel -Custom =org-babel-execute:xonsh= — writes block body to temp =.xsh= file -and runs via the =xonsh= interpreter. Params: -- =:dir= working directory (default: =default-directory=) -- =:cmdline= extra args passed to =xonsh= - -The executor must also be installed inside the =ob-async= child -process — it runs in a fresh Emacs that never loads this config, so a -plain =defun= here would be void there. Stashing the installer in a -variable lets both the parent and the =ob-async-pre-execute-src-block-hook= -share one definition. - #+begin_src emacs-lisp (defvar my/ob-xonsh-installer (lambda () @@ -5358,7 +5341,7 @@ reset is unnecessary, so do the handler resolution ourselves and skip (org-eww-copy-for-org-mode)) #+end_src -** shrface — org-like html rendering +** shrface #+begin_src emacs-lisp (use-package shrface @@ -5373,7 +5356,7 @@ reset is unnecessary, so do the handler resolution ourselves and skip (shrface-default-keybindings)) #+end_src -** shr-tag-pre-highlight — syntax-highlighted code blocks +** shr-tag-pre-highlight #+begin_src emacs-lisp (use-package shr-tag-pre-highlight @@ -5384,7 +5367,7 @@ reset is unnecessary, so do the handler resolution ourselves and skip '(pre . shr-tag-pre-highlight))) #+end_src -** ace-link — avy-style link jumping +** ace-link #+begin_src emacs-lisp (use-package ace-link @@ -5393,7 +5376,7 @@ reset is unnecessary, so do the handler resolution ourselves and skip :config (ace-link-setup-default)) #+end_src -** link-hint — vimium-style hints +** link-hint #+begin_src emacs-lisp (use-package link-hint -- cgit v1.3.1