From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jens Schmidt via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: v. 29.1.1 | Missing syntax colouring option Date: Thu, 10 Aug 2023 21:49:56 +0200 Message-ID: References: Reply-To: Jens Schmidt Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25948"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 10 21:55:41 2023 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 1qUBkw-0006Q2-FA for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 10 Aug 2023 21:55:38 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qUBkZ-0007gn-0j; Thu, 10 Aug 2023 15:55:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qUBkV-0007ft-19 for help-gnu-emacs@gnu.org; Thu, 10 Aug 2023 15:55:11 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qUBkT-0006Oh-0W for help-gnu-emacs@gnu.org; Thu, 10 Aug 2023 15:55:10 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1qUBkO-0005X0-PB for help-gnu-emacs@gnu.org; Thu, 10 Aug 2023 21:55:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ Content-Language: de-DE-frami, en-US In-Reply-To: Received-SPF: pass client-ip=116.202.254.214; envelope-from=geh-help-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -37 X-Spam_score: -3.8 X-Spam_bar: --- X-Spam_report: (-3.8 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-2.156, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144736 Archived-At: On 2023-08-10 13:18, Ricky Tigg wrote: > The extension of the file I work with is *ps1*. I doubt Emacs knows how to > determine that the expected code language is PowerShell as there is no > syntax coloring. Not every imaginable package is included up-front in Emacs, some (actually: many, and not all of them imaginable) are available as external packages and require additional installation. There is a PowerShell Emacs major mode including syntax highlighting on MELPA (https://melpa.org/). However MELPA is not in the list of default package archives, so some extra work is needed to get that going. See section "Package Installation" in the Emacs manual. The EmacsWiki also gives instructions, just google for "emacswiki melpa". > Also an observation that cannot be missed; the software lacks the option *Open > a recent file*. Having to repeatedly specify the same path is without doubt > not an option in modern software. It would be worth adding that option.. > Regards. Others have provided already options, but maybe you look for something as simple as a history when finding files or doing other file operations *from the minibuffer* (that very bottom line in an Emacs frame)? Just use cursor-up and cursor-down after starting any such file operation. For example: C-x C-f would bring up the path of the previous file operation to your current prompt. AFAICT that history gets populated even if you access files through the menu bar or tool bar. Oh, and you can use the savehist package, which is built-in to Emacs, to save the minibuffer history across Emacs sessions.