Add a setting for coderef_label_format.
This commit is contained in:
parent
bcade66e68
commit
d059afef07
@ -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)",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user