From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Gauland Subject: Customize listings per language? Date: Mon, 2 Dec 2019 14:48:56 +1300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:53675) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ibapu-00006u-8L for emacs-orgmode@gnu.org; Sun, 01 Dec 2019 20:49:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ibaps-0005ai-33 for emacs-orgmode@gnu.org; Sun, 01 Dec 2019 20:49:14 -0500 Received: from mail-io1-xd2d.google.com ([2607:f8b0:4864:20::d2d]:42681) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ibapr-0005ZB-V6 for emacs-orgmode@gnu.org; Sun, 01 Dec 2019 20:49:12 -0500 Received: by mail-io1-xd2d.google.com with SMTP id f25so12320849iog.9 for ; Sun, 01 Dec 2019 17:49:08 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Org-mode I often have several different babel languages in the same file. I'd like to be able make them easily distinguished by language (such as having a different background or shadow). As far as I can tell, the listings package doesn't let me override settings by language. The best solution I've so far is to precede each block with a directive, such as: #+ATTR_LATEX: :options rulesepcolor=\color{green} #+begin_src elisp Any suggestions for a less error-prone solution? Kind regards, Mike