10

I have org-mode file with more than 10k lines of notes and traversing through the tree (just basic up/down movements) is very slow (to the point that it's unusable). What can i do to make it work faster?

I know i can split the big files into many smaller ones, but i want to have it encrypted (into *.org.gpg) and don't want to enter the password every time i open different file.

Thank you for help.

3
  • 1
    don't want to enter the password every time i open different file <-- you don't need to do this when you use a key chain that you unlock at login time.
    – user2005
    Dec 26, 2014 at 19:40
  • @rekado: could you elaborate a little more on how to do that?
    – Dan
    Dec 27, 2014 at 0:03
  • @Dan: there are many implementations of key chains / key rings. On Fedora I use gnome-keyring, which is configured to unlock the keyring (containing my GPG and SSH keys) on login.
    – user2005
    Dec 27, 2014 at 10:09

3 Answers 3

11

linum-mode is also having a big impact on the speed of browsing orgmode files, so it's better not to use it.

1
  • This is better - when i set it to nil (global-linum-mode in my case) i can have whole tree visible (without content) and there are no lags. Thank you.
    – Kossak
    Dec 29, 2014 at 15:20
7

Collapse nothing:

#+STARTUP: showeverything

Your file "will be fast" again.

1

I know post already has an accepted answer, but thought this might still be helpful to some people. If the cause of your slowness is global-linum-mode but you don't want to lose the line numbering, replace global-linum-mode by global-display-line-numbers-mode (see https://www.emacswiki.org/emacs/LineNumbers). Requires Emacs 26 or higher.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.