Hello Bastien,
Bastien<bzg@altern.org> writes:
Yagnesh Raghava Yakkala<yagnesh@live.com> 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)
Wow this is great, working nice too (except when point is at the end of
buffer). I didn't think, Org itself can be used here. I wonder why its not
working with other programming modes, say perl and python.
Thanks.