emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Emacs-orgmode] doing `M-x org-mode' loses point


From: Carsten Dominik
Subject: Re: [Emacs-orgmode] doing `M-x org-mode' loses point
Date: Fri, 16 Jun 2006 21:17:43 +0200


On Jun 16, 2006, at 16:41, Eduardo Ochs wrote:


So, is this org-mode-jumps-to-the-first-header-line a bug or a
feature? Is there a standard workaround?

Org-mode repositions the curser when it changes the visibility in a buffer, to make sure that the screen is used when you switch to overview mode, for example.

The change you see is because when switching to org-mode, the default setting is to hide everything except for top-level headlines. So visibility is changed when you enter org-mode, and consequently the cursor moves.

In your case, changeing the visibility is as unwanted as moving the cursor. You can turn this off globally with

(setq org-startup-folded nil)

Or turn it off for just this buffer by adding this line to the file:

#+STARTUP: showall

If you generally dislike the cursor motion after visibility change, you can also do

(setq org-cycle-hook nil)

Hope this helps.

- Carsten



--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477





reply via email to

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