From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yEvyEsoPmmB/KwEAgWs5BA (envelope-from ) for ; Tue, 11 May 2021 07:02:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gMGlDsoPmmBxGwAA1q6Kng (envelope-from ) for ; Tue, 11 May 2021 05:02:02 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B454619AF5 for ; Tue, 11 May 2021 07:02:01 +0200 (CEST) Received: from localhost ([::1]:53626 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgKWu-0000Yo-KX for larch@yhetil.org; Tue, 11 May 2021 01:02:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55678) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgKVx-0000YV-6t for emacs-orgmode@gnu.org; Tue, 11 May 2021 01:01:02 -0400 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]:39758) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgKVs-0004zV-Rv for emacs-orgmode@gnu.org; Tue, 11 May 2021 01:01:00 -0400 Received: by mail-pg1-x52a.google.com with SMTP id s22so14909370pgk.6 for ; Mon, 10 May 2021 22:00:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version; bh=6dQ70ANWciLjXFLBhnIvqGzi5t5mOXd0OZSsf3Gwh0s=; b=NRCgvDLb2Oc1KnL0HdOlIYx5ESXj8HsiB99szR0l6TMVKq1cXcaQdKuzUKxS3URq7U 2vXVUmDuEBLVJA9wuzYFPOvQCdvxyTydSZqB0BDzrvVztK0jtSbzc0aEX5zWA36u7qiT Nf1jHQiNLsygPT+ScwPemA/FfhWZ2sgwQW9VrZKMmWCTQJVOF2YLRwZLAoSaIaDG4FSH T5XuB/HkvsiMSAMznEpP35TQ7Z9d5cOphHreXEosmQF1mjWTs7iCxcI5x1Nw5bNM/yCk WWYAKAmXSKRERNB7C6KstxBFb+U+2ERf6UPEjKDJP/SRxxbKiSONf6XLtWNcyergOCpN fXuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject:date :in-reply-to:message-id:mime-version; bh=6dQ70ANWciLjXFLBhnIvqGzi5t5mOXd0OZSsf3Gwh0s=; b=efgsK+0anXslCIgBiIIRNHEMorUbT61sQDd93+bAfABHtgANRQomAVAbYZB4B+NTPP 5KbJbKZGyQKMxyvmSisa6ominABoN/vC7Uz2EkXUBE+JIgdY8K3nueEm0RKI5zKKm0uI zwBdGP/qdr038axqAZI8K040kZoXVjVCDetzsx42cUAN7Rl2KjQXpDJdKUFw66YfkOSw 3xYqU6x9qrf3syzFY15xBiWUl4peSpZK0xojT6oFFsGHEzWhKVPAvqcpW90h5w/hW5GH xgsJ/csupD1zqei51bIOv9njaTloAL7a0Ri4WQQ14iHhsE3I72mvPWtl1vc9wVh9Q4yM T+TQ== X-Gm-Message-State: AOAM5312uJmPXxcRIaiyXPulLDp+qXo1kJD2lWzLW66Db+XUQS33yaTq zZAUNG5j0871O7AGt1FOvfXE/Z9BB84= X-Google-Smtp-Source: ABdhPJzMQGAycqwLr9k6eKc67MnqwjTF02EfF9XviEJz8s2HnKrqA50k4z4hD/IposcG3mg4IMfwnQ== X-Received: by 2002:a05:6a00:1687:b029:253:f417:4dba with SMTP id k7-20020a056a001687b0290253f4174dbamr28551686pfc.5.1620709254744; Mon, 10 May 2021 22:00:54 -0700 (PDT) Received: from tim-desktop (106-69-120-32.dyn.iinet.net.au. [106.69.120.32]) by smtp.gmail.com with ESMTPSA id f6sm11848778pfe.74.2021.05.10.22.00.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 22:00:54 -0700 (PDT) References: User-agent: mu4e 1.5.13; emacs 28.0.50 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: Highlighting and Background Colour for Source Code Date: Tue, 11 May 2021 14:50:44 +1000 In-reply-to: Message-ID: <87zgx1c1a4.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::52a; envelope-from=theophilusx@gmail.com; helo=mail-pg1-x52a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620709321; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=6dQ70ANWciLjXFLBhnIvqGzi5t5mOXd0OZSsf3Gwh0s=; b=N+2EGc/JvyTSYqY2pxL5E9JVj7cn3Cff0yH5oJeS+zc1gPCWQttSMv0okOwbJbFxfzjzln pLs2ubgKZ0A0NDuh0ILUNvCwls/S0f1dUjtfAtYpaPrwDEEbAgkK2uIlaRxDDwObpOZMKo EEwdwQgnBYId0M7sNXR/irYkM+hrW01uMN+J8Ez3rXR3Ea4Xbn4w6Wcfak3ZTDptzhmVAk roEiIKJsXI7sW087VRuB+KN4oal6uORQKAcDSYuMoN0ds6l8h3LFdwQ2wkmeZb0Q39lidh PEBu9gzMyMsCdkoQked0vynnnijfxKGMd82J3/Z9dpVpAQeWWYQNOCWOBysQKQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620709321; a=rsa-sha256; cv=none; b=Mi7MOylhCYIqgXLxH8w9c90B5CP5thxeft0xqfUT9xBdN3MY1aE4TOTOpkqWbqEoAdZnIP /YrQCjSeD6rC7hqYWOXvkROQHaMiRK4szWyKxO7lZOe01/6RdxxotZZqTnrVpByEoH2Qkz Co6W9IdNzjzE05mLo/iXgGSc06Egf8D1h8M59wF0bHPZ1codkcKPT2VnznKZQLwItI3pzK XTxpmXpliOX23+QCbUIgx29lFpBwu8fkK/hsNdxWBPHuiNxetBrmp1tFLiAzcLPELCp3at 5Nw/98xFIjf1NnUe4y26EM2e+zsT/8mIsHGrfWKcFpE1WxIPlWdj+CAP88P9Dg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=NRCgvDLb; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.65 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=NRCgvDLb; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: B454619AF5 X-Spam-Score: -1.65 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7EPZAjfHgII8 Christopher Dimech writes: > Currently currently handles the highlighting of programming languages through > "Code Blocks". Could org-mode have the capability of highlighting a whole buffer > with a particular language highlight typeface. > Sorry, I don't quite understand what exactly your asking for? > I have also seen that within code blocks, the background is uses a colour that is > different from the background colour of the buffer. Is there a capability that > the code block background is set to the buffer background colour. I think more often than not, this is determined by the Emacs colour theme your using. I've noticed that some themes colour src block backgrounds differently from the rest of the buffer background and some don't. I noticed this because I do like src blocks to have a different background and some of the themes I like fail to do this, so I had to customize them. You can try customizing your theme. Have a look at M-x list-colors-display to see a list of all the faces being used. Look for ones with your theme name or a name which looks like it might be the background face for src blocks (you can also see the colours and look for that. Once you have made the changes, look at M-x customize-theme and save your changes as a new customized theme. -- Tim Cross