0

I am using Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-03-28, modified by Debian with elpy and evil-mode.

When I open a py-file I want everything folded in there by default.

It is still unclear for me how to search for an answer to this wish because I do not know which of the components (elpy, evil, emacs itself, ...) is responsible for that.

1 Answer 1

1

With EVil, you can use

(add-hook 'python-mode-hook
          (lambda ()
            (evil-close-folds)
            ))

to close all folds upon entering a file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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