diff --git a/src/context/global_settings.rs b/src/context/global_settings.rs index e91c93a5..5932cc1f 100644 --- a/src/context/global_settings.rs +++ b/src/context/global_settings.rs @@ -16,7 +16,7 @@ pub struct GlobalSettings<'g, 's> { /// Set to true to allow for plain lists using single letters as the bullet in the same way that numbers are used. /// /// Corresponds to the org-list-allow-alphabetical elisp variable. - pub org_list_allow_alphabetical: bool, + pub list_allow_alphabetical: bool, /// How many spaces a tab should be equal to. /// @@ -38,7 +38,7 @@ impl<'g, 's> GlobalSettings<'g, 's> { }, in_progress_todo_keywords: BTreeSet::new(), complete_todo_keywords: BTreeSet::new(), - org_list_allow_alphabetical: false, + list_allow_alphabetical: false, tab_width: 8, odd_levels_only: HeadlineLevelFilter::OddEven, } diff --git a/src/parser/plain_list.rs b/src/parser/plain_list.rs index 5b556117..3b10d55d 100644 --- a/src/parser/plain_list.rs +++ b/src/parser/plain_list.rs @@ -298,7 +298,7 @@ fn counter<'b, 'g, 'r, 's>( context: RefContext<'b, 'g, 'r, 's>, input: OrgSource<'s>, ) -> Res, OrgSource<'s>> { - if context.get_global_settings().org_list_allow_alphabetical { + if context.get_global_settings().list_allow_alphabetical { alt(( recognize(one_of( "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",