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 ms11 with LMTPS id dLvAIpx5XV+pTgAA0tVLHw (envelope-from ) for ; Sun, 13 Sep 2020 01:45:00 +0000 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 oOXVHJx5XV/jcQAA1q6Kng (envelope-from ) for ; Sun, 13 Sep 2020 01:45:00 +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 E4E2F94071A for ; Sun, 13 Sep 2020 01:44:59 +0000 (UTC) Received: from localhost ([::1]:54660 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHH4b-0004Mz-Dr for larch@yhetil.org; Sat, 12 Sep 2020 21:44:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42754) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHH46-0004Mi-LK for emacs-orgmode@gnu.org; Sat, 12 Sep 2020 21:44:26 -0400 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]:35793) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kHH44-0006c2-UJ for emacs-orgmode@gnu.org; Sat, 12 Sep 2020 21:44:26 -0400 Received: by mail-pl1-x62c.google.com with SMTP id t6so1449934plz.2 for ; Sat, 12 Sep 2020 18:44:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:message-id :date:mime-version:content-transfer-encoding; bh=UJHUGSnkrCwG6Twb2sS2JbXNdk+5+Sc8HZSAqI25YFQ=; b=t0dQWTdsJa+sgtr7EhUD/0SCkN1bFW6U7KxoUikrxg+9kSG6Yj0CBYgtNG0vC620MW BRH4YXkN6Wf9pwDZxZZOP7e5niqxDWim/R3kHSgdwx6CtUdWrTePNNEdXRWP9CluQZob fvHGmlETs5YPoyomZotQFtNGtsbBuDBxrsKbgHYYtr2cgmeF/DHdUg6oG95tOMD16rDb MPmBKffh29RbH6e5YwpgJgPtA4w5wY4iI4Ln9QJyUUgGCNiIJI8GPPin0PpNtbdWB+uQ kPXV7gnTnFH2aTF0eXBpimFuJGeYVJSkC3mpiHCJZNU0t7A4F6pKruQie7FHZNOfAO9Z LFhQ== 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:cc:subject :in-reply-to:message-id:date:mime-version:content-transfer-encoding; bh=UJHUGSnkrCwG6Twb2sS2JbXNdk+5+Sc8HZSAqI25YFQ=; b=ABySt7baR7COgDAtpxNpcx5qMaIKRHrv08XhGnIlDBkfosPJgAMrZPTJrr5W814Ld8 uT47SIaWN+/I6E8UcA+bj0V3JtBX/XpmEpa1Is+YNPKXhQJwEf1gdUu+/LPX6Jg93OD1 KCUk6/vV1wNLQs/9mseVVpnwBo2GQQpVTYDV13XOA/03HXOFsYVmpxhI0W4sL0R54Pv4 tGQeqPk8Enr4dD3KJ33lLKBGMVPB2a6PXirpHhkwd3MxQAw4R2b53ANrF6oE/JQ+gXe9 +KeCUsqlWj8G4LPz9SxXRK6ykU2psU7Zu4sOq4vmoZO87VnBDnTfMIipioDY8LuEtp68 WhgA== X-Gm-Message-State: AOAM530uJzggOEhPmxRkCOTygdFGLYx6d6YDNI8LQ1qEpwebmEOocekK i8+HOuucB+WoAPbpgSFwn4zIwg2byc9kng== X-Google-Smtp-Source: ABdhPJxm5/zM4+Gqp7cyEn0gBZrQhnaaBLi+ZwzyPYhuJDpRQ8JT4Bt3/DD52B1sXZDXMydY2ejY9A== X-Received: by 2002:a17:902:9698:b029:d1:9492:745b with SMTP id n24-20020a1709029698b02900d19492745bmr8702878plp.26.1599961462972; Sat, 12 Sep 2020 18:44:22 -0700 (PDT) Received: from tim-desktop (220-235-23-129.dyn.iinet.net.au. [220.235.23.129]) by smtp.gmail.com with ESMTPSA id f12sm2757013pfa.31.2020.09.12.18.44.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Sep 2020 18:44:22 -0700 (PDT) References: <4a4f6286-0600-4e6a-90b9-174257e19a48@Spark> User-agent: mu4e 1.5.5; emacs 27.1.50 From: Tim Cross To: CRSHCMDR Subject: Re: JS2 Syntax Highlighting for Source Blocks In-reply-to: Message-ID: <87v9gipi19.fsf@gmail.com> Date: Sun, 13 Sep 2020 11:44:18 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=theophilusx@gmail.com; helo=mail-pl1-x62c.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=t0dQWTds; 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-Spam-Score: -1.71 X-TUID: bbQb8bZrwfIe CRSHCMDR writes: > Is it possible to use js2-mode instead of js-mode for the syntax highligh= ting of code blocks in org-mode? The reason that I ask is that the current = js-mode syntax highlighting leaves something to be desired, and is from my = perspective broken. For instance after declaring a variable, the usage of t= hat variable is no longer highlighted. You can see the difference here http= s://imgur.com/a/4b2LyhE. > > I have tried using the =E2=80=98org-src-lang-modes, but I=E2=80=99m eithe= r not setting it correctly, or I=E2=80=99m barking up the wrong tree. > What happens if you just use 'js2' as the language in the source block header instead of javascript? --=20 Tim Cross