From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Gauland Subject: Different listing styles for same babel language? Date: Mon, 24 Jul 2017 12:34:21 +1200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZRKS-0006ib-08 for emacs-orgmode@gnu.org; Sun, 23 Jul 2017 20:34:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dZRKO-0007zR-UM for emacs-orgmode@gnu.org; Sun, 23 Jul 2017 20:34:32 -0400 Received: from mail-pf0-x229.google.com ([2607:f8b0:400e:c00::229]:36030) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dZRKO-0007yZ-Nl for emacs-orgmode@gnu.org; Sun, 23 Jul 2017 20:34:28 -0400 Received: by mail-pf0-x229.google.com with SMTP id z129so816425pfb.3 for ; Sun, 23 Jul 2017 17:34:27 -0700 (PDT) Received: from [132.181.235.22] ([132.181.235.22]) by smtp.gmail.com with ESMTPSA id j29sm20454173pfj.68.2017.07.23.17.34.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Jul 2017 17:34:25 -0700 (PDT) Content-Language: en-US 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: emacs-orgmode@gnu.org My org documents include lots of source code blocks, in a variety of languages. I use the listings package to give each language a distinctive look. Lately, my work has involved using shell commands on different machines, as different users. I'd like to give each shell environment (e.g., local user, normal user on remote host, root on remote host) a different look. At the moment, I'm doing this by specifying different shells (bash, dash, sh) for each. This works, especially since I'm not executing the commands from emacs, so it doesn't matter which shell I specify. Is there a better way to do this? Would anyone else find it useful? I'm happy to work on the code, if I'm not the only one who'd use it.