From be0f19b1fbc95c490c8f8d5f402beadcf273df25 Mon Sep 17 00:00:00 2001 From: Christian Shtarkov Date: Mon, 21 Oct 2024 00:58:36 +0100 Subject: [PATCH] Derive instead of redefining backend --- onerc.el | 29 +++-------------------------- 1 file changed, 3 insertions(+), 26 deletions(-) diff --git a/onerc.el b/onerc.el index 9af6c69..e149a57 100644 --- a/onerc.el +++ b/onerc.el @@ -1,30 +1,7 @@ ;; -*- lexical-binding: t; -*- -(org-export-define-backend 'shtarkov.net-ox - '((headline . one-ox-headline) - (section . one-ox-section) - (paragraph . one-ox-paragraph) - - (plain-text . one-ox-plain-text) - - (bold . one-ox-bold) - (italic . one-ox-italic) - (strike-through . one-ox-strike-through) - (underline . one-ox-underline) - (code . one-ox-code) - (verbatim . one-ox-verbatim) - - (subscript . one-ox-no-subscript) - (superscript . one-ox-no-superscript) - - (plain-list . one-ox-plain-list) - (item . one-ox-item) - - (src-block . one-ox-src-block) - (example-block . one-ox-example-block) - (fixed-width . one-ox-fixed-width) - (quote-block . one-ox-quote-block) - - (link . shtarkov.net-link))) +(org-export-define-derived-backend 'shtarkov.net-ox 'one-ox + :translate-alist + '((link . shtarkov.net-link))) (defun shtarkov.net-head (website-name) `(:head -- 2.43.5