Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vicente-gonzalez-ruiz/e336070883f220e640cbde37ccb484a5 to your computer and use it in GitHub Desktop.
Save vicente-gonzalez-ruiz/e336070883f220e640cbde37ccb484a5 to your computer and use it in GitHub Desktop.
Emacs and folding
1. Install MELPA:
1.1 Add:
(require 'package)
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
("org" . "https://orgmode.org/elpa/")
("gnu" . "https://elpa.gnu.org/packages/")))
(package-initialize)
to ~/.emacs
1.2 Add:
(if (require 'folding nil 'noerror)
(folding-mode-add-find-file-hook)
(message "Library `folding' not found"))
to .emacs
2. Rerun emacs.
3. Run the commands:
M-x package-refresh-contents RET
M-x package-install RET folding RET
M-x folding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment