Change <Leader> to <LocalLeader> for orgmode-specific mappings #643
-
| 
         I like having the two global mappings of  Is there a way to change the   | 
  
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
| 
         Turns out there is a prefix available in the mappings. It's set to  orgmode/lua/orgmode/config/defaults.lua Line 130 in 8040906 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',
    -- NOTE: Have to manually re-specify the globals as they were using the prefix
    global = {
      org_agenda = '<Leader>oa',
      org_capture = '<Leader>oc',
    },
    -- NOTE: This isn't using the prefix, but instead <Leader>, so we change it explicitly
    org = {
      org_meta_return = '<LocalLeader><CR>',
    },
  },
}) | 
  
Beta Was this translation helpful? Give feedback.
Turns out there is a prefix available in the mappings. It's set to
<Leader>o, so I changed it to<LocalLeader>oand 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.orgmode/lua/orgmode/config/defaults.lua
Line 130 in 8040906