Skip to content

Instantly share code, notes, and snippets.

@vicente-gonzalez-ruiz
Created April 23, 2026 07:15
Show Gist options
  • Select an option

  • Save vicente-gonzalez-ruiz/78d9b1cb3d14d88088308c580fda083e to your computer and use it in GitHub Desktop.

Select an option

Save vicente-gonzalez-ruiz/78d9b1cb3d14d88088308c580fda083e to your computer and use it in GitHub Desktop.
folding in emacs
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