{"id":10546,"date":"2022-05-22T12:30:22","date_gmt":"2022-05-22T16:30:22","guid":{"rendered":"https:\/\/irreal.org\/blog\/?p=10546"},"modified":"2022-05-22T12:30:22","modified_gmt":"2022-05-22T16:30:22","slug":"using-abbrev-to-autocorrect","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=10546","title":{"rendered":"Using Abbrev to Autocorrect"},"content":{"rendered":"<p>In his post on <a href=\"https:\/\/www.masteringemacs.org\/article\/text-expansion-hippie-expand\">hippie expand<\/a>, Mickey Petersen mentioned the <a href=\"https:\/\/www.gnu.org\/software\/emacs\/manual\/html_node\/emacs\/Abbrev-Concepts.html#index-abbrev_002dmode\">abbrev<\/a> command and its utility as a way of making on-the-fly corrections to common typos and misspellings. I really, really hate having my editor or any input device automatically make corrections but lots of people swear by it. It\u2019s easy to see why. If you commonly type \u201cmroe\u201d for \u201cmore\u201d it\u2019s convenient to have the correction made automatically. With Emacs, it is, of course, easy to arrange that.<\/p>\n<p>Mickey has a new post on <a href=\"https:\/\/www.masteringemacs.org\/article\/correcting-typos-misspellings-abbrev\">Correcting Typos and Misspellings with Abbrev<\/a>. In that post he outlines how he uses abbrev to create and maintain a list of corrections that are automatically applied as he types. In the hippie expand post he mentioned that he grabbed a list of common misspellings and typos from Wikipedia and converted it to a set of abbrev entries. In the comments to that post he was asked to expand on this and his current post is largely devoted to his explanation.<\/p>\n<p>He gives a link to the Wikipedia list and then explains how he converted it to abbrev entries. You won\u2019t be surprised to learn that the conversion involved a keyboard macro. It is, in any event, a simple process and when you\u2019re done you have a list of words to be automatically corrected.<\/p>\n<p>If you like this sort of thing, you should definitely spend a few minutes to read Mickey\u2019s post. Abbrev mode is just one of Emacs\u2019 expansion mechanisms but it serves an important niche for many people and is definitely worth knowing about.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In his post on hippie expand, Mickey Petersen mentioned the abbrev command and its utility as a way of making on-the-fly corrections to common typos and misspellings. I really, really hate having my editor or any input device automatically make &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=10546\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[18],"class_list":["post-10546","post","type-post","status-publish","format-standard","hentry","category-general","tag-emacs"],"_links":{"self":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/10546","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10546"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/10546\/revisions"}],"predecessor-version":[{"id":10547,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/10546\/revisions\/10547"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10546"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10546"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}