From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.help Subject: Re: Format code snippets of the wolfram language to improve readability. Date: Tue, 26 Apr 2022 10:53:45 +0200 Message-ID: <87ilqw6x9i.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32330"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Hongyi Zhao Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 26 11:12:24 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 1njHFA-0008HA-E3 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 26 Apr 2022 11:12:24 +0200 Original-Received: from localhost ([::1]:54220 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njHF9-0000ul-C2 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 26 Apr 2022 05:12:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njGxC-0001Rh-6v for help-gnu-emacs@gnu.org; Tue, 26 Apr 2022 04:53:52 -0400 Original-Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:39439) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1njGxA-0000pJ-Im for help-gnu-emacs@gnu.org; Tue, 26 Apr 2022 04:53:49 -0400 Original-Received: by mail-wr1-x42b.google.com with SMTP id d5so9221223wrb.6 for ; Tue, 26 Apr 2022 01:53:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version; bh=wu02ov0pmqN/H63lpi9FXIqE7UpwxB/xNsBo0EWSuCc=; b=enOHjvAFAUVLvlFoMZ4JlNfVGAZNKCwuwikwTRznsW2LVsRd3uwjjw8XP97+UM1DvX 10Mf0Bm54ISbA3kW0FlC+hEcpeMh8P/JH9s/Rne95DPdFO5ofZoHchv51R4evjc8Ep9a C/5CudHML4baIfX2OcPTW7sE9cVUN7AAJ7YdShLrrLJV/rzYSpG8s2oB7gCEmCugHK67 Kj7R7VV+amXNn3Z4MQvsrQMOaIOdnYk8EN09FvVwvzD7aO5urr/M1caMkVfTzC+EWaPB gzYS6xuVkX3oMB3YkIIC/q5UOP//ae3nFFFkKnhDFlcXEBd/h2U5fommychHUYijSPfr +TTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=wu02ov0pmqN/H63lpi9FXIqE7UpwxB/xNsBo0EWSuCc=; b=AO0cIDCu1Vq47JqHPphEZlE8mx7oET/C2TnE30L05ntu1H6r/KAb5ldamXzS1KOQ5/ fCibKjHpXUYGVDDUs7NVt9kgs0wRxqRim9iSfg7R4LEOIwg370+l9Z4pm/G4dt55sgO+ GXfeHWrgYa2frNVl6ZFnhpqSwk+tad7XEdOS3dqyxpAZ3Z0NwTML4PzKlINZ6GDXLdb2 +wgaWV3JqQCMtlDn+fT2H3kGBRj5uRzh2+WgbHHC0++6KGy+FoXNsN9moISV9+VkrDBm p2VG/DUzPMcwkTKxAPvHtc0u0pVy3iMOs8oTcwCqAVvZt7JETZn2mxVXFT5g8PQCsuaV akUA== X-Gm-Message-State: AOAM531lPE3ODTjsC/Dq0amz2iwt9X4IbF7vkYQtQbAUA3+9wQP/Jn7H iqB+n4Ea9HTryUxLnrJ+T9rudCDh55k= X-Google-Smtp-Source: ABdhPJxfGQssURP8Zniyr2Lgh6yWusXAa0MkdHqnYFAJNeI+wGbDskrZvUKy3scEuqzH8T9XQVKLrw== X-Received: by 2002:adf:fd45:0:b0:20a:d0fa:1342 with SMTP id h5-20020adffd45000000b0020ad0fa1342mr12868389wrs.595.1650963226610; Tue, 26 Apr 2022 01:53:46 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:892d:11d8:2b62:689f]) by smtp.gmail.com with ESMTPSA id g7-20020a5d64e7000000b0020aaa0fea81sm13778071wri.36.2022.04.26.01.53.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Apr 2022 01:53:46 -0700 (PDT) Gmane-Reply-To-List: yes In-Reply-To: (Hongyi Zhao's message of "Tue, 26 Apr 2022 16:42:26 +0800") Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=rpluim@gmail.com; helo=mail-wr1-x42b.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:137028 Archived-At: >>>>> 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? Robert --