{"id":10802,"date":"2022-09-11T13:17:21","date_gmt":"2022-09-11T17:17:21","guid":{"rendered":"https:\/\/irreal.org\/blog\/?p=10802"},"modified":"2022-09-11T13:17:21","modified_gmt":"2022-09-11T17:17:21","slug":"entering-special-characters-with-abbrev","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=10802","title":{"rendered":"Entering Special Characters with Abbrev"},"content":{"rendered":"<p>As I\u2019ve said before, I do almost all my writing in Org-mode so entering special characters is easy. I can either use the built-in Org characters or drop into TeX input mode. But, of course, I\u2019m not always in Org-mode. Sometimes I want a special character when entering a Git description\u2014most often \u2192 but occasionally others\u2014and there are other situations where I need them as well.<\/p>\n<p>My solution\u2014that I learned from Xah Lee\u2014is to use the abbrev system that\u2019s built into Emacs. Thus, I have the abbreviation <code>\/ra<\/code> for \u2192. The other day, I saw this post by <a href=\"https:\/\/olddeuteronomy.github.io\">The Emacs Cat<\/a> on using abbrev for <a href=\"https:\/\/olddeuteronomy.github.io\/post\/use-abbrev-to-enter-special-characters\/\">inputting special characters anywhere within Emacs<\/a>. It\u2019s basically the same system that I use except that I depend on <a href=\"https:\/\/www.emacswiki.org\/emacs\/HippieExpand\">hippie expand<\/a> to resolve my abbreviations rather than having them expand automatically, which I find jarring.<\/p>\n<p>The Emacs Cat begins each of the abbreviation keys with <code>8<\/code> to avoid having accidental expansions. That\u2019s a good solution and one that many may prefer. Regardless of which method you employ, using <code>abbrev-mode<\/code> to enter special characters that you need frequently is a win. You can always drop back to <code>insert-char<\/code>, bound to <kbd>Ctrl<\/kbd>+<kbd>x<\/kbd> <kbd>8<\/kbd> <kbd>Return<\/kbd>, to enter those that you don\u2019t use often.<\/p>\n<p>Take a look at The Emacs Cat\u2019s post for the details on how to set things up.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As I\u2019ve said before, I do almost all my writing in Org-mode so entering special characters is easy. I can either use the built-in Org characters or drop into TeX input mode. But, of course, I\u2019m not always in Org-mode. &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=10802\">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-10802","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\/10802","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=10802"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/10802\/revisions"}],"predecessor-version":[{"id":10803,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/10802\/revisions\/10803"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10802"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}