From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: Format code snippets of the wolfram language to improve readability. Date: Tue, 26 Apr 2022 17:40:22 +0800 Message-ID: References: <87ilqw6x9i.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9899"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Robert Pluim Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 26 12:01:55 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1njI15-0002Sg-5f for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 26 Apr 2022 12:01:55 +0200 Original-Received: from localhost ([::1]:38144 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njI13-0007OR-Lj for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 26 Apr 2022 06:01:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54340) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njHgT-0002MA-3B for help-gnu-emacs@gnu.org; Tue, 26 Apr 2022 05:40:37 -0400 Original-Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]:44870) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1njHgR-00080A-Dt for help-gnu-emacs@gnu.org; Tue, 26 Apr 2022 05:40:36 -0400 Original-Received: by mail-ej1-x629.google.com with SMTP id i19so3177576eja.11 for ; Tue, 26 Apr 2022 02:40:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QtehY7TmRVFb/V3GVkJD3IrH65PpjGa3H91E4Q90zQI=; b=J4p2/HQ6V7NrqGF8UYEVbxR24iJv36+pS1XHm2AqtHswaobqdy0AojQ8lI9rq5LcZp u/MSO3uzqLvMfch2gufoeLHsuU4FJdekPQ/taQjEXpUeTz9WqRFGvq1f/XSfW4ZmFIeI jiTEQv3q5/4jMz7BToeAF7RDa5uQIJBJm6pi3c0GwVi/EZ8WbVHoOrvEASZWXYjQTnAG ryawunoWg3gcAF2V1Fd5BuktDEc+b3n/+IOtClBpEYyjy1isGMEhaPACg1v9wF2uPf/u a9js/Tl11/E3Zkmguduak4P/pPchBqPa1IcCEppId2y1ZbKoPLKrkrC+FsT9A7ukcZO4 aYhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QtehY7TmRVFb/V3GVkJD3IrH65PpjGa3H91E4Q90zQI=; b=np5t7S1UcCMjQHaZhwRr1EDi//QRv6V5vuYsBh0reSKtEYVpIJ0LZLkZHxqr/Zm/xv gdaQNpkD5lZHv0kTDvVMeb8e2LnRnRHD7Ae4nMuDkgBTkAmU2LPydllaTHJml+5mQlq+ tlI+ubJb+x5iNIKn6wKPSVGWN8DGFzjlKltX41XsFXwAbGEsV9wkgMqFyrGuxxcXQloq PhMJwt7MIkY4vjpnZ4+KL06NDW6xdXe9OZhDOabX1Ttj9D9JAT/8lfsoq/qzL6YHHON6 oYowMojzsDvye90BBDoBXKVxP925qS/0K1QQ2XJGYFj/rQ2pbjF/4A5v5GbTVsA291g9 dZNw== X-Gm-Message-State: AOAM532NWFwQYIqS8I9NvlfmGkEfazSzldxZNKiEHER73CE6fERN9iV5 veEihy4o0UAuaVPPLv2Ru4eJNhca9LsVYsejPIU= X-Google-Smtp-Source: ABdhPJwIdryzzgA4Uf/q/fp4h3kBxJYVu5qn9aD8+0TrSe0YCH7hR0PIskHAHWJHdGIM63C5WRupXFS71uW1/qIS+2U= X-Received: by 2002:a17:906:9c84:b0:6e0:7c75:6f01 with SMTP id fj4-20020a1709069c8400b006e07c756f01mr20379234ejc.103.1650966033871; Tue, 26 Apr 2022 02:40:33 -0700 (PDT) In-Reply-To: <87ilqw6x9i.fsf@gmail.com> Received-SPF: pass client-ip=2a00:1450:4864:20::629; envelope-from=hongyi.zhao@gmail.com; helo=mail-ej1-x629.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:137030 Archived-At: On Tue, Apr 26, 2022 at 4:53 PM Robert Pluim wrote: > > >>>>> On Tue, 26 Apr 2022 16:42:26 +0800, Hongyi Zhao said: > > Hongyi> I've the following code snippets of the wolfram language: > Hongyi> ``` > Hongyi> Hold[ReplaceRepeated[List[A, B, IA, A, B, IA, A, B, IA, A, B, IA, A, > Hongyi> B, IA], RuleDelayed[Condition[List[Pattern[x, BlankNullSequence[]], > Hongyi> Pattern[y, Blank[]], Pattern[z, Blank[]], Pattern[t, > Hongyi> BlankNullSequence[]]], Simplify[Equal[Dot[y, z], IdentityMatrix[3]]]], > Hongyi> List[x, t]]]] > Hongyi> ``` > > Hongyi> I want to format it in Emacs to improve readability. Any hints for > Hongyi> achieving this purpose? > > Install wolfram-mode? BTW, here [1] is a more recent and alternative version of wolfram-mode, but it does not have the functions required for the issues discussed here. [1] https://github.com/xahlee/xah-wolfram-mode HZ