all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: Spelling and spell-checking
Date: Wed, 16 Mar 2016 19:57:06 +0100	[thread overview]
Message-ID: <87mvpyntdp.fsf@debian.uxu> (raw)
In-Reply-To: 87fuvxkz7f.fsf@skimble.plus.com

Sharon Kimble <boudiccas@skimble.plus.com> writes:

> How can I have words that I type be auto-corrected
> to what I want please? I'm specifically thinking of
> words like these -
>
> im = I'm ive = I've thats = that's Thats = That's
> cant = can't monday = Monday tuesday = Tuesday, etc
>
> and other specific words.

This is not a spelling issue or at least it doesn't
have to be, as there is a better way to do it, namely
using aliases.

Here is a couple of examples what you can do with it.
It is actually what I use only with many entries
removed in an attempt to have each entry
qualitatively different.

Examples are: a nickname expanded to bulky long name
(I added that when I wrote an article on the Kon-Tiki
expedition as to not have to spell out his name every
time); data from aliases (the URL, residence, and
phone number - N.B. not just a shorthand, but also
more safe as not error-prone due to boredom when
typing mechanically); and the most interesting case:
the misspelling of "length", which I always get wrong
(even now!) as every super-skilled typist has a couple
of such words which they always get wrong no matter
what... And last, the function that gets executed to
insert the date. Here, when I type "thedate":

   19:50    Mar 16    Wednesday: week 11    month 3 (31 days)    2016     up    4° C

("up" refers to the Internet being up :))

Here is the Elisp:

;; (kill-all-abbrevs)
(let*((write
       (list
         '("watz"           "Watzinger")
         '("hp"             "http://user.it.uu.se/~embe8573")
         '("lenght"         "length")
         '("address"        "Emanuel Berg\nDalgatan 8\n752 18 Uppsala\nSweden")
         '("phonenumber"    "070-254 15 22")
         '("thedate"        "" (lambda () (interactive) (show-time-and-date t))) ; INSERT
         ))
      (groups (list
                '("ctt" "comp.text.tex")
                '("geg" "gmane.emacs.gnus")
                '("geh" "gmane.emacs.help")
                '("rbt" "rec.bicycles.tech")
                ))
      (both (nconc write groups)))
  (define-abbrev-table 'global-abbrev-table both) )

> Any ideas please?

Yes: don't do it. Typing "'" only requires minimal
hand movement (right hand little finger one key to the
right). Capitalizing things we do all the time.

-- 
underground experts united
http://user.it.uu.se/~embe8573




      parent reply	other threads:[~2016-03-16 18:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-11 11:53 Spelling and spell-checking Sharon Kimble
2016-03-11 14:31 ` Thorsten Grothe
2016-03-25 18:40   ` Sharon Kimble
2016-03-25 18:48     ` Thorsten Grothe
     [not found]     ` <56F67CC4.8000303@mousecar.com>
     [not found]       ` <878u15f719.fsf@skimble.plus.com>
2016-03-27 19:46         ` ken
2016-03-11 14:42 ` Eli Zaretskii
2016-03-12 20:08 ` Charles Millar
2016-03-16 18:57 ` Emanuel Berg [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

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

  git send-email \
    --in-reply-to=87mvpyntdp.fsf@debian.uxu \
    --to=embe8573@student.uu.se \
    --cc=help-gnu-emacs@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.