Emacs Hide / Show Block
Hi,
The article is copied from emacs-fu.blogspot.com address.
The following code lines are added into emacs configuration file ( ~/.emacs )
C-c @ C-h combination hides code block.
C-c @ C-s combination show code block.
C-c @ ESC C-h combination hides all code blocks.
C-c @ ESC C-s combination show all code blocks.
In addition, the commands which start hs- are ran with M-x.
The article is copied from emacs-fu.blogspot.com address.
The following code lines are added into emacs configuration file ( ~/.emacs )
(add-hook 'c-mode-common-hook
(lambda()
(local-set-key (kbd "C-c <right>") 'hs-show-block)
(local-set-key (kbd "C-c <left>") 'hs-hide-block)
(local-set-key (kbd "C-c <up>") 'hs-hide-all)
(local-set-key (kbd "C-c <down>") 'hs-show-all)
(hs-minor-mode t)))
C-c @ C-h combination hides code block.
C-c @ C-s combination show code block.
C-c @ ESC C-h combination hides all code blocks.
C-c @ ESC C-s combination show all code blocks.
In addition, the commands which start hs- are ran with M-x.