Emacs 代码折叠

2019-01-24  本文已影响13人  wlianfu
hs-show-all:显示所有的代码
hs-hide-all:折叠所有的代码
hs-show-block:显示当前代码区
hs-hide-block:折叠当前代码区
hs-toggle-hiding: 折叠/显示当前代码区
 
;;代码折叠
(add-hook 'c-mode-common-hook   'hs-minor-mode)
(add-hook 'emacs-lisp-mode-hook 'hs-minor-mode)
(add-hook 'java-mode-hook       'hs-minor-mode)
(add-hook 'ess-mode-hook       'hs-minor-mode)
(add-hook 'perl-mode-hook       'hs-minor-mode)
(add-hook 'sh-mode-hook         'hs-minor-mode)
(add-hook 'python-mode-hook         'hs-minor-mode)
 
(global-set-key [f2] 'hs-toggle-hiding)

原文:https://blog.csdn.net/u010164190/article/details/79248663

上一篇下一篇

猜你喜欢

热点阅读