From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Gauland Subject: Different listing styles for same babel language? Date: Thu, 20 Jul 2017 13:14:04 +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]:48063) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dY02h-0000SZ-0V for emacs-orgmode@gnu.org; Wed, 19 Jul 2017 21:14:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dY02d-0007eZ-Sg for emacs-orgmode@gnu.org; Wed, 19 Jul 2017 21:14:14 -0400 Received: from mail-pg0-x234.google.com ([2607:f8b0:400e:c05::234]:36904) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dY02d-0007c1-NV for emacs-orgmode@gnu.org; Wed, 19 Jul 2017 21:14:11 -0400 Received: by mail-pg0-x234.google.com with SMTP id y129so7315149pgy.4 for ; Wed, 19 Jul 2017 18:14:10 -0700 (PDT) Received: from [132.181.235.22] ([132.181.235.22]) by smtp.gmail.com with ESMTPSA id o6sm1533286pgs.43.2017.07.19.18.14.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Jul 2017 18:14:08 -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.