emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "briangpowell ." <briangpowellms@gmail.com>
To: Ken Mankoff <mankoff@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>,
	"Samuel W. Flint" <swflint@flintfam.org>
Subject: Re: [OT] wildcards in autocorrect?
Date: Sat, 28 Mar 2015 13:47:53 -0400	[thread overview]
Message-ID: <CAFm0skGjTXKp+su+GZKEf1MUXTC=8PexFnskDFZ1X-PSEhAjmg@mail.gmail.com> (raw)
In-Reply-To: <F6F8689C-1F7C-47C1-B7D1-15B075181145@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2645 bytes --]

* Something like this may do what you seek (which isn't clear to me):

Mx replace-regexp \boc.*\b \bco.*\b

** But why you'd do such a thing is a mystery to me--this may be more
useful to you:

Query Replace

M-% string <RET> newstring <RET>
Replace some occurrences of string with newstring.
C-M-% regexp <RET> newstring <RET>
Replace some matches for regexp with newstring.

** Forgive me if you know this already.

*** But your question is slightly funny to long time Emacs users like
myself because Emacs has been built, piece-by-piece, by thousands of
programmers, to do the most complex editing jobs you can imagine and the
regular expression library is the fastest in the world for "buffers",
"windows" and visual incremental search and replace (as I describe above).
By the way if you have to do search and replace, and you want to do it
visually, I suggest "QEmacs"--made by the same genius who created Qemu
(which is what VirtualBox is based on) and he also broke the record for
calculating the digits of π.  I'm talking about Fabrice Bellard--thank God
for him!

(I recommend QEmacs--just for the fun of it--it has a few amazing
abilities.)

* Finally, from reading your general [OT]/help me plea: I strongly suggest
you use FlySpell-Mode (in addition to "abbrev" functions that the other
Emacs hackers suggested).













On Sat, Mar 28, 2015 at 1:17 PM, Ken Mankoff <mankoff@gmail.com> wrote:

> Maybe key-chord mode could help with this?
>
>   -k.
>
> Please excuse brevity. Sent from pocket computer with tiny non-haptic
> feedback keyboard.
>
> > On Mar 28, 2015, at 12:57, "Samuel W. Flint" <swflint@flintfam.org>
> wrote:
> >
> > There's something on endless parentheses that will let you generate a
> correction abbrev with a keystroke.
> >
> > Samuel W. Flint
> > Please forgive any typos as this was composed on a screen keyboard.
> >
> >> On Mar 28, 2015, at 9:19 AM, Matt Price <moptop99@gmail.com> wrote:
> >>
> >> I make a lot of typing errors (I have an injury to one hand, which
> impedes bilateral cooperation). In Libreoffice I am able to define wildcard
> autocorrect objects, e.g.:
> >>
> >> oc.* ---> co.*
> >>
> >> This will correct ocrrect, ocmputer, ocndition, etc.  Does anyone know
> a way to do something similar in Emacs? Right now I am using abbrev mode
> and defining my errors one by one -- it is a very slow process since I make
> so many mistakes and have a moderately large vocabulary.
> >>
> >> I am sure this is possible somehow, I just don't know how.
> >>
> >> thanks as always,
> >> m
> >>
> >>
> >
>
>

[-- Attachment #2: Type: text/html, Size: 4337 bytes --]

  reply	other threads:[~2015-03-28 17:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-28 14:19 Matt Price
2015-03-28 16:57 ` Samuel W. Flint
2015-03-28 17:17   ` Ken Mankoff
2015-03-28 17:47     ` briangpowell . [this message]
2015-03-28 17:58       ` briangpowell .
2015-03-28 18:20   ` John Kitchin
2015-03-28 18:34     ` briangpowell .
2015-03-28 19:56     ` Matt Price

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='CAFm0skGjTXKp+su+GZKEf1MUXTC=8PexFnskDFZ1X-PSEhAjmg@mail.gmail.com' \
    --to=briangpowellms@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mankoff@gmail.com \
    --cc=swflint@flintfam.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).