From d059afef078ad26090ad253938f8f7e7d1df3b13 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Wed, 4 Oct 2023 15:48:57 -0400 Subject: [PATCH] Add a setting for coderef_label_format. --- src/context/global_settings.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/context/global_settings.rs b/src/context/global_settings.rs index f730c582..8b0a9eca 100644 --- a/src/context/global_settings.rs +++ b/src/context/global_settings.rs @@ -32,6 +32,11 @@ pub struct GlobalSettings<'g, 's> { /// /// Corresponds to org-footnote-section elisp variable. pub footnote_section: &'g str, + + /// The label format for references inside src/example blocks. + /// + /// Corresponds to org-coderef-label-format elisp variable. + pub coderef_label_format: &'g str, } pub const DEFAULT_TAB_WIDTH: IndentationLevel = 8; @@ -49,6 +54,7 @@ impl<'g, 's> GlobalSettings<'g, 's> { tab_width: DEFAULT_TAB_WIDTH, odd_levels_only: HeadlineLevelFilter::default(), footnote_section: "Footnotes", + coderef_label_format: "(ref:%s)", } } }