orgmode icon indicating copy to clipboard operation
orgmode copied to clipboard

Set default fold level from config, emacs' org-startup-folded

Open d-r-jenkins opened this issue 3 years ago • 1 comments

Does this feature exist in Emacs orgmode core?

Yes

Orgmode link

https://orgmode.org/manual/Initial-visibility.html

Feature value

No response

Additional context

Currently the default is to fold everything. I think it would be good if this feature could be changed as I personally (in most cases) don't like folds.

d-r-jenkins avatar Aug 14 '22 17:08 d-r-jenkins

I have the same problem. And also would like to have this configurable. In the mean time I put this autocmd into my neovim configuraion. It seems to do the job. I can still fold staff if I want by pressing <S-Tab>. But by default it opens with all folds open.

local orgmode_group = vim.api.nvim_create_augroup("orgmode", { clear = true })
vim.api.nvim_create_autocmd(
  'FileType',
  {
    group = orgmode_group,
    pattern = 'org',
    command = 'setlocal nofoldenable'
  }
)

antosha417 avatar Aug 23 '22 20:08 antosha417