一、参考
emacs 系列文章目录——更新 ing
Hideshow minor mode
Hidden Gem Packages
二、根本应用
2.1 init.el
配置
48 ;; 配置代码折叠
111 (add-hook 'emacs-lisp-mode-hook'hs-minor-mode)
112 (add-hook 'python-mode-hook'hs-minor-mode)
113 (add-hook 'go-mode'hs-minor-mode)
114 (global-set-key (kbd "M-[") 'hs-show-block)
115 (global-set-key (kbd "M-]") 'hs-hide-block)