{"id":333807,"date":"2025-12-07T23:03:58","date_gmt":"2025-12-07T23:03:58","guid":{"rendered":"https:\/\/peraltafinancing.com\/uncategorized\/quickly-switch-between-html-and-plain-text-in-mu4e\/"},"modified":"2025-12-07T23:03:58","modified_gmt":"2025-12-07T23:03:58","slug":"quickly-switch-between-html-and-plain-text-in-mu4e","status":"publish","type":"post","link":"https:\/\/fivemor.com\/?p=333807","title":{"rendered":"Quickly Switch Between HTML and Plain Text in mu4e"},"content":{"rendered":"<p> <br \/>\n<\/p>\n<div id=\"post-1785\">\n\t\t\t\t<!-- .entry-header --><\/p>\n<div class=\"entry-content\">\n<p class=\"last-updated\"><em>Last updated on December 29, 2024<\/em><\/p>\n<p><a href=\"https:\/\/djcbsoftware.nl\/code\/mu\/mu4e.html\"><code>Mu4e<\/code><\/a> defaults loading messages in HTML with shr. While this works well most of the time, sometimes a plain text version is more readable. Therefore, it is desirable to create a key binding to switch between these two versions.<\/p>\n<p>I have the following in my Emacs configuration:<\/p>\n<pre><code class=\"language-scheme\">;; Quickly switching between plain text and HTML mime type.\n(keymap-set mu4e-view-mode-map (kbd \"K\")\n            (lambda ()\n              (interactive)\n              (gnus-article-jump-to-part 1)\n              (gnus-article-press-button)\n              (gnus-article-press-button)))\n<\/code><\/pre>\n<p>This binds key <kbd>Shift<\/kbd>+<kbd>K<\/kbd> to switch between plain text and HTML versions of a message, if the message has both versions available.<\/p>\n<\/p><\/div>\n<p><!-- .entry-content --><\/p>\n<footer class=\"entry-meta\">\n\t\t\tThis entry was posted in <a href=\"https:\/\/www.topbug.net\/blog\/category\/programming-tools\/emacs\/\" rel=\"category tag\">Emacs<\/a> on <a href=\"https:\/\/www.topbug.net\/blog\/2024\/12\/28\/quickly-switch-between-html-and-plain-text-in-mu4e\/\" title=\"10:14 pm\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"2024-12-28T22:14:29+00:00\">December 28, 2024<\/time><\/a><span class=\"by-author\"> by <span class=\"author vcard\"><a class=\"url fn n\" href=\"https:\/\/www.topbug.net\/blog\/author\/xuhdev\/\" title=\"View all posts by Hong\" rel=\"author\">Hong<\/a><\/span><\/span>.\t\t\t\t\t\t\t\t\t\t<\/p>\n<div class=\"author-info\">\n<div class=\"author-avatar\">\n\t\t\t\t\t\t<img loading=\"lazy\" alt=\"\" src=\"https:\/\/secure.gravatar.com\/avatar\/e14b1f8800de5b47662197b3c433383a7057554c4c618cff0246d5e02deb0ddb?s=68&amp;d=mm&amp;r=g\" srcset=\"https:\/\/secure.gravatar.com\/avatar\/e14b1f8800de5b47662197b3c433383a7057554c4c618cff0246d5e02deb0ddb?s=136&amp;d=mm&amp;r=g 2x\" class=\"avatar avatar-68 photo\" height=\"68\" width=\"68\" decoding=\"async\"\/>\t\t\t\t\t<\/div>\n<p><!-- .author-avatar --><\/p>\n<div class=\"author-description\">\n<h2>\n\t\t\t\t\t\tAbout Hong\t\t\t\t\t\t<\/h2>\n<p>The maintainer of topbug.net.<\/p>\n<p>\t\t\t\t\t\t<!-- .author-link\t-->\n\t\t\t\t\t<\/div>\n<p><!-- .author-description -->\n\t\t\t\t<\/div>\n<p><!-- .author-info --><br \/>\n\t\t\t\t\t<\/footer>\n<p><!-- .entry-meta -->\n\t<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>Last updated on December 29, 2024 Mu4e defaults loading messages in HTML with shr. While this works well most of the time, sometimes a plain text version is more readable. Therefore, it is desirable to create a key binding to switch between these two versions. I have the following in my Emacs configuration: ;; Quickly [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":333808,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[159210],"tags":[13834,159211,202,14493,4318,836],"dealstore":[],"offerexpiration":[],"class_list":["post-333807","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-emacs","tag-html","tag-mu4e","tag-plain","tag-quickly","tag-switch","tag-text"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Quickly Switch Between HTML and Plain Text in mu4e - Som2ny Network<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fivemor.com\/?p=333807\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Quickly Switch Between HTML and Plain Text in mu4e - Som2ny Network\" \/>\n<meta property=\"og:description\" content=\"Last updated on December 29, 2024 Mu4e defaults loading messages in HTML with shr. While this works well most of the time, sometimes a plain text version is more readable. Therefore, it is desirable to create a key binding to switch between these two versions. I have the following in my Emacs configuration: ;; Quickly [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fivemor.com\/?p=333807\" \/>\n<meta property=\"og:site_name\" content=\"Som2ny Network\" \/>\n<meta property=\"article:published_time\" content=\"2025-12-07T23:03:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/12\/e14b1f8800de5b47662197b3c433383a7057554c4c618cff0246d5e02deb0ddb.png\" \/>\n\t<meta property=\"og:image:width\" content=\"68\" \/>\n\t<meta property=\"og:image:height\" content=\"68\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fivemor.com\/?p=333807#article\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/?p=333807\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\"},\"headline\":\"Quickly Switch Between HTML and Plain Text in mu4e\",\"datePublished\":\"2025-12-07T23:03:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=333807\"},\"wordCount\":102,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=333807#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/12\/e14b1f8800de5b47662197b3c433383a7057554c4c618cff0246d5e02deb0ddb.png\",\"keywords\":[\"HTML\",\"mu4e\",\"Plain\",\"Quickly\",\"Switch\",\"TEXT\"],\"articleSection\":[\"Emacs\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fivemor.com\/?p=333807#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fivemor.com\/?p=333807\",\"url\":\"https:\/\/fivemor.com\/?p=333807\",\"name\":\"Quickly Switch Between HTML and Plain Text in mu4e - Som2ny Network\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=333807#primaryimage\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=333807#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/12\/e14b1f8800de5b47662197b3c433383a7057554c4c618cff0246d5e02deb0ddb.png\",\"datePublished\":\"2025-12-07T23:03:58+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/fivemor.com\/?p=333807#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fivemor.com\/?p=333807\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/?p=333807#primaryimage\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/12\/e14b1f8800de5b47662197b3c433383a7057554c4c618cff0246d5e02deb0ddb.png\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/12\/e14b1f8800de5b47662197b3c433383a7057554c4c618cff0246d5e02deb0ddb.png\",\"width\":68,\"height\":68},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fivemor.com\/?p=333807#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/fivemor.com\/?bp_activities=1\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Quickly Switch Between HTML and Plain Text in mu4e\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fivemor.com\/#website\",\"url\":\"https:\/\/fivemor.com\/\",\"name\":\"Som2ny Network\",\"description\":\"Daily Deals\",\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fivemor.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/fivemor.com\/#organization\",\"name\":\"Som2ny Network\",\"url\":\"https:\/\/fivemor.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"width\":300,\"height\":86,\"caption\":\"Som2ny Network\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/fivemor.com\"],\"url\":\"https:\/\/fivemor.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Quickly Switch Between HTML and Plain Text in mu4e - Som2ny Network","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/fivemor.com\/?p=333807","og_locale":"en_US","og_type":"article","og_title":"Quickly Switch Between HTML and Plain Text in mu4e - Som2ny Network","og_description":"Last updated on December 29, 2024 Mu4e defaults loading messages in HTML with shr. While this works well most of the time, sometimes a plain text version is more readable. Therefore, it is desirable to create a key binding to switch between these two versions. I have the following in my Emacs configuration: ;; Quickly [&hellip;]","og_url":"https:\/\/fivemor.com\/?p=333807","og_site_name":"Som2ny Network","article_published_time":"2025-12-07T23:03:58+00:00","og_image":[{"width":68,"height":68,"url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/12\/e14b1f8800de5b47662197b3c433383a7057554c4c618cff0246d5e02deb0ddb.png","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fivemor.com\/?p=333807#article","isPartOf":{"@id":"https:\/\/fivemor.com\/?p=333807"},"author":{"name":"admin","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371"},"headline":"Quickly Switch Between HTML and Plain Text in mu4e","datePublished":"2025-12-07T23:03:58+00:00","mainEntityOfPage":{"@id":"https:\/\/fivemor.com\/?p=333807"},"wordCount":102,"commentCount":0,"publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"image":{"@id":"https:\/\/fivemor.com\/?p=333807#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/12\/e14b1f8800de5b47662197b3c433383a7057554c4c618cff0246d5e02deb0ddb.png","keywords":["HTML","mu4e","Plain","Quickly","Switch","TEXT"],"articleSection":["Emacs"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fivemor.com\/?p=333807#respond"]}]},{"@type":"WebPage","@id":"https:\/\/fivemor.com\/?p=333807","url":"https:\/\/fivemor.com\/?p=333807","name":"Quickly Switch Between HTML and Plain Text in mu4e - Som2ny Network","isPartOf":{"@id":"https:\/\/fivemor.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/fivemor.com\/?p=333807#primaryimage"},"image":{"@id":"https:\/\/fivemor.com\/?p=333807#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/12\/e14b1f8800de5b47662197b3c433383a7057554c4c618cff0246d5e02deb0ddb.png","datePublished":"2025-12-07T23:03:58+00:00","breadcrumb":{"@id":"https:\/\/fivemor.com\/?p=333807#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fivemor.com\/?p=333807"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/?p=333807#primaryimage","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/12\/e14b1f8800de5b47662197b3c433383a7057554c4c618cff0246d5e02deb0ddb.png","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/12\/e14b1f8800de5b47662197b3c433383a7057554c4c618cff0246d5e02deb0ddb.png","width":68,"height":68},{"@type":"BreadcrumbList","@id":"https:\/\/fivemor.com\/?p=333807#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/fivemor.com\/?bp_activities=1"},{"@type":"ListItem","position":2,"name":"Quickly Switch Between HTML and Plain Text in mu4e"}]},{"@type":"WebSite","@id":"https:\/\/fivemor.com\/#website","url":"https:\/\/fivemor.com\/","name":"Som2ny Network","description":"Daily Deals","publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fivemor.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/fivemor.com\/#organization","name":"Som2ny Network","url":"https:\/\/fivemor.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","width":300,"height":86,"caption":"Som2ny Network"},"image":{"@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","caption":"admin"},"sameAs":["https:\/\/fivemor.com"],"url":"https:\/\/fivemor.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/333807","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=333807"}],"version-history":[{"count":0,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/333807\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/media\/333808"}],"wp:attachment":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=333807"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=333807"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=333807"},{"taxonomy":"dealstore","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdealstore&post=333807"},{"taxonomy":"offerexpiration","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fofferexpiration&post=333807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}