Created
April 23, 2026 07:15
-
-
Save vicente-gonzalez-ruiz/78d9b1cb3d14d88088308c580fda083e to your computer and use it in GitHub Desktop.
folding in emacs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. mkdir -p ~/.emacs.d/lisp | |
| 2. wget https://raw.githubusercontent.com/jaalto/project-emacs--folding-mode/master/folding.el -O ~/.emacs.d/lisp/folding.el | |
| 3. Add to ~/.emacs: | |
| ;; Add your manual lisp folder to the path | |
| (add-to-list 'load-path "~/.emacs.d/lisp") | |
| ;; Load the library | |
| (require 'folding) | |
| ;; Configure for LaTeX | |
| (with-eval-after-load 'folding | |
| (folding-add-to-marks-list 'latex-mode "%{{{" "%}}}" nil t)) | |
| ;; Activate folding-mode automatically | |
| (folding-mode-add-find-file-hook) | |
| 4. Activate with: ESC-x folding-mode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment