From: "briangpowell ." <email@example.com>
To: John Kitchin <firstname.lastname@example.org>
Cc: Org Mode <email@example.com>,
"Samuel W. Flint" <firstname.lastname@example.org>
Subject: Re: [OT] wildcards in autocorrect?
Date: Sat, 28 Mar 2015 14:34:33 -0400 [thread overview]
Message-ID: <CAFm0skFoUcJyu+iZE1MaqQ70Cf3htzwXc+WdZMT8ekUtx_j50A@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2542 bytes --]
Very interesting John, I get it now--that may be very useful--thanks for
Also, I left out a main reason to use QEmacs: I use it for visually editing
very large multi-gigabyte files--I use it for some of the things we
discussed--search and replace and/or incremental-search-and-replace.
On Sat, Mar 28, 2015 at 2:20 PM, John Kitchin <email@example.com>
> This is the code Samuel refers to. It is awesome. I use it less and less
> ;) by which I mean everytime I use it is one less time I ever have to use
> (define-key ctl-x-map "\C-i" 'endless/ispell-word-then-abbrev)
> (defun endless/ispell-word-then-abbrev (p)
> "Call `ispell-word'. Then create an abbrev for the correction made.
> With prefix P, create local abbrev. Otherwise it will be global."
> (interactive "P")
> (let ((bef (downcase (or (thing-at-point 'word) ""))) aft)
> (call-interactively 'ispell-word)
> (setq aft (downcase (or (thing-at-point 'word) "")))
> (unless (string= aft bef)
> (message "\"%s\" now expands to \"%s\" %sally"
> bef aft (if p "loc" "glob"))
> (if p global-abbrev-table local-abbrev-table)
> bef aft))))
> Professor John Kitchin
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> On Sat, Mar 28, 2015 at 12:57 PM, Samuel W. Flint <firstname.lastname@example.org>
>> 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 <email@example.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: 4014 bytes --]
next prev parent reply other threads:[~2015-03-28 18:34 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 .
2015-03-28 17:58 ` briangpowell .
2015-03-28 18:20 ` John Kitchin
2015-03-28 18:34 ` briangpowell . [this message]
2015-03-28 19:56 ` Matt Price
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:
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* 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
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).