emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: John J Foerch <jjfoerch@earthlink.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: feature request: delete-selection-mode
Date: Wed, 18 Oct 2006 09:53:26 +0200	[thread overview]
Message-ID: <d6107b6ef142be3d2b746568541d662e@science.uva.nl> (raw)
In-Reply-To: <878xjeim9o.fsf@earthlink.net>


On Oct 18, 2006, at 0:57, John J Foerch wrote:

> Hi,
>
>         I am using org-mode 4.44, and I wish it would work with
> delete-selection-mode.

There are two ways to handle this.

1) Either you stop org-mode from taking over all the commands inserting
    letters and deleting single characters.  This means not using the
    optimized version of the table editor:

      (setq org-enable-table-editor t)

    The disadvantage is that in tables, each letter typed now dis-aligns
    the table and you need to wait for the next align (triggered by TAB,
    for example) for things to look nice again.

2) Or you make delete-selection-mode aware of org-mode's special 
commands:

      (eval-after-load "delsel"
        '(progn		
           (put 'org-self-insert-command 'delete-selection t)
           (put 'orgtbl-self-insert-command 'delete-selection t)
           (put 'org-delete-char 'delete-selection 'supersede)
           (put 'org-delete-backward-char 'delete-selection 'supersede)))

Hope this helps.

- Carsten

      reply	other threads:[~2006-10-18  7:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-17 22:57 feature request: delete-selection-mode John J Foerch
2006-10-18  7:53 ` 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=d6107b6ef142be3d2b746568541d662e@science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=jjfoerch@earthlink.net \
    /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).