This is either a bug or a feature request. Summary: cperl-mode: Support for outlining (much like that in perl-mode) 1. Add this to your .emacs (add-hook 'perl-mode-hook 'outline-minor-mode) (add-hook 'cperl-mode-hook 'outline-minor-mode) (add-hook 'outline-minor-mode-hook (lambda () (define-key outline-minor-mode-map [(control tab)] 'org-cycle) ;; (define-key outline-minor-mode-map [(shift tab)] 'org-global-cycle) (define-key outline-minor-mode-map [backtab] 'org-global-cycle) )) 2. C-x C-f org.pl 3. M-x perl-mode 4. Do this , See the attached screenshot for what I get. 5. M-x cperl-mode 6. Repeat step 4. Nothing interesting happens. Only thing I see is this message. --8<---------------cut here---------------start------------->8--- hide-sublevels: Must keep at least one level of headers [3 times] --8<---------------cut here---------------end--------------->8--- Expected behaviour ================== I should be able to "cycle" through the visibility.