emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* feature request: delete-selection-mode
@ 2006-10-17 22:57 John J Foerch
  2006-10-18  7:53 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: John J Foerch @ 2006-10-17 22:57 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

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

--John / RetroJ

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: feature request: delete-selection-mode
  2006-10-17 22:57 feature request: delete-selection-mode John J Foerch
@ 2006-10-18  7:53 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2006-10-18  7:53 UTC (permalink / raw)
  To: John J Foerch; +Cc: emacs-orgmode


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-10-18  7:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-17 22:57 feature request: delete-selection-mode John J Foerch
2006-10-18  7:53 ` Carsten Dominik

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).