{"id":11768,"date":"2021-06-10T19:36:21","date_gmt":"2021-06-10T17:36:21","guid":{"rendered":"https:\/\/wp.jochen.hayek.name\/blog-en\/?p=11768"},"modified":"2021-07-05T13:23:57","modified_gmt":"2021-07-05T11:23:57","slug":"disable-colours-in-emacs","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2021\/06\/10\/disable-colours-in-emacs\/","title":{"rendered":"disable colours in Emacs"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/www.emacswiki.org\/emacs\/AngryFruitSalad\n\">https:\/\/www.emacswiki.org\/emacs\/AngryFruitSalad<\/a><\/li><li><a href=\"http:\/\/catb.org\/jargon\/html\/A\/angry-fruit-salad.html\n\">http:\/\/catb.org\/jargon\/html\/A\/angry-fruit-salad.html<\/a><\/li><li><a href=\"https:\/\/en.wiktionary.org\/wiki\/angry_fruit_salad\">https:\/\/en.wiktionary.org\/wiki\/angry_fruit_salad<\/a><\/li><li><a href=\"http:\/\/www.askbjoernhansen.com\/2002\/09\/05\/unix_tip_disable_colors_in_ema.html\">http:\/\/www.askbjoernhansen.com\/2002\/09\/05\/unix_tip_disable_colors_in_ema.html<\/a><\/li><li><a href=\"https:\/\/unix.stackexchange.com\/questions\/108257\/how-do-i-stop-emacs-from-colouring-the-text-of-the-file-i-am-editing#108272\">https:\/\/unix.stackexchange.com\/questions\/108257\/how-do-i-stop-emacs-from-colouring-the-text-of-the-file-i-am-editing#108272<\/a><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">To disable colouring in your current buffer, toggle font-lock-mode off with this command (my ad-hoc solution):<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">M-x font-lock-mode<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To disable font-lock-mode &#8220;permanently&#8221; \u2013 see above! <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You may still find coloured remainders \u2013 but it&#8217;s not as bad any longer.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Continued:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">One day I suddenly noticed what should have been obvious from the beginning (in that environment):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ echo $TERM\nxterm-256color<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now it was clear how to disable colours effectively in a non-GUI Emacs:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ env TERM=xterm emacs<\/code><\/pre>\n\n\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/www.emacswiki.org\/emacs\/AngryFruitSalad http:\/\/catb.org\/jargon\/html\/A\/angry-fruit-salad.html https:\/\/en.wiktionary.org\/wiki\/angry_fruit_salad http:\/\/www.askbjoernhansen.com\/2002\/09\/05\/unix_tip_disable_colors_in_ema.html https:\/\/unix.stackexchange.com\/questions\/108257\/how-do-i-stop-emacs-from-colouring-the-text-of-the-file-i-am-editing#108272 To disable colouring in your current buffer, toggle font-lock-mode off with this command (my ad-hoc solution): M-x font-lock-mode To disable font-lock-mode &#8220;permanently&#8221; \u2013 see above! You may still find coloured remainders \u2013 but it&#8217;s not as bad any longer. Continued: One day I suddenly noticed what should have been obvious [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false,"_share_on_mastodon":"0"},"categories":[120],"tags":[],"class_list":["post-11768","post","type-post","status-publish","format-standard","hentry","category-emacs"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-33O","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/11768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=11768"}],"version-history":[{"count":4,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/11768\/revisions"}],"predecessor-version":[{"id":11791,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/11768\/revisions\/11791"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=11768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=11768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=11768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}