emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Eduardo Ochs <eduardoochs@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: doing `M-x org-mode' loses point
Date: Fri, 16 Jun 2006 21:17:43 +0200	[thread overview]
Message-ID: <f602a53bc2321e551f439d30288f0e84@science.uva.nl> (raw)
In-Reply-To: <d46ca6c20606160741y2fad1f5bjce53a56a40336cdc@mail.gmail.com>


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	other threads:[~2006-06-16 19:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-16 14:41 doing `M-x org-mode' loses point Eduardo Ochs
2006-06-16 19:17 ` Carsten Dominik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f602a53bc2321e551f439d30288f0e84@science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=eduardoochs@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).