Skip to content

Change <Leader> to <LocalLeader> for orgmode-specific mappings #643

Answered by chipsenkbeil
chipsenkbeil asked this question in Q&A
Discussion options

You must be logged in to vote

Turns out there is a prefix available in the mappings. It's set to <Leader>o, so I changed it to <LocalLeader>o and redefined the global mappings to keep the <Leader>. It appears that there is one other binding that is using leader instead of the prefix explicitly, which I also needed to set.

org_meta_return = '<Leader><CR>', -- Add heading, item or row (context-dependent)

require('orgmode').setup({
  org_agenda_files = '~/orgfiles/**/*',
  org_default_notes_file = '~/orgfiles/refile.org',
  mappings = {
    -- Change everything (but globals) to use local leader for org files
    prefix = '<LocalLeader>o',

    --

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chipsenkbeil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant