[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: code folding with <backtab> ?

From: Bastien
Subject: Re: code folding with <backtab> ?
Date: Sat, 07 Apr 2012 11:18:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux)

Yagnesh Raghava Yakkala <address@hidden> writes:

> To begin with elisp, can anybody tell me how to make backtab to show the
> outline of the buffer at least for two levels. I mean first press would show
> me buffer folded upto top level comments, defuns, defcustoms and defvars
> and the second press would show me entire buffer.

Add a hook to use `orgstruct-mode' in emacs-lisp buffers:

  (add-hook 'emacs-lisp-mode-hook 'orgstruct-mode)

Define a new `org-cycle-global' command:

  (defun org-cycle-global () (interactive) (org-cycle t))

Set this keybinding:

  (global-set-key (kbd "<backtab>") 'org-cycle-global)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]