Add a setting for coderef_label_format.

This commit is contained in:
Tom Alexander 2023-10-04 15:48:57 -04:00
parent bcade66e68
commit d059afef07
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -32,6 +32,11 @@ pub struct GlobalSettings<'g, 's> {
/// ///
/// Corresponds to org-footnote-section elisp variable. /// Corresponds to org-footnote-section elisp variable.
pub footnote_section: &'g str, 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; pub const DEFAULT_TAB_WIDTH: IndentationLevel = 8;
@ -49,6 +54,7 @@ impl<'g, 's> GlobalSettings<'g, 's> {
tab_width: DEFAULT_TAB_WIDTH, tab_width: DEFAULT_TAB_WIDTH,
odd_levels_only: HeadlineLevelFilter::default(), odd_levels_only: HeadlineLevelFilter::default(),
footnote_section: "Footnotes", footnote_section: "Footnotes",
coderef_label_format: "(ref:%s)",
} }
} }
} }