From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Patrick Mahan Newsgroups: gmane.emacs.help Subject: Re: Help with frame colors in Emacs Date: Mon, 7 Nov 2022 12:35:48 -0800 Message-ID: References: <83zgd2y2p0.fsf@gnu.org> 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="39563"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 07 21:36:56 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 1os8rX-000A8C-F8 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 07 Nov 2022 21:36:55 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1os8qm-0006VP-6A; Mon, 07 Nov 2022 15:36:08 -0500 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 1os8qh-0006RW-Jp for help-gnu-emacs@gnu.org; Mon, 07 Nov 2022 15:36:06 -0500 Original-Received: from mail-oa1-x2d.google.com ([2001:4860:4864:20::2d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1os8qf-0002Pf-RN; Mon, 07 Nov 2022 15:36:03 -0500 Original-Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-13b23e29e36so14024418fac.8; Mon, 07 Nov 2022 12:36:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+CCpkU5FEHgJNl7w5x58bEbhfvZxuuF2CGJiST9acs0=; b=NcAPDAhXYXUdIQq8x5MBz4Mu4PR85uAQgVuZzLTeztUf6RS2gGW2dqUg4du3Ic8vFb 9GOwGa/W3YVJGyuFxwqKcdrwKcdpe1wt7m/BoRpO5wNZYzaphOmKdeWUfZLjuerN1cjP Zhn5RLFomtJxIRgUdWkuVCWGYOWmaxrnrHTy1/Bz+cGlxliuLevGA1lFz8yyfrZqwSB9 dUTH2H3/XwByEdROpFrtjjqXelmtL37fnmPUZpie1sdEa7wB98Olg1FipkIlpomF1pzb wqpIII7xQM+Ccd/2CVioNGAlwC8eLXUNVXBXucb8lCRMRXLDI+iUInoKug/baN4CsJXA F4TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+CCpkU5FEHgJNl7w5x58bEbhfvZxuuF2CGJiST9acs0=; b=Vxa964rKrN1PRDPh1ijSWyD4inwZaCinvArJuyGrycuHstYigAQvs6NIaBVRJq6n50 ipYbrlRB9k+YT1HrL6ZTa6GnZmpcP2+Ldd04iJf2DVCeKmO0vKr8wbcIQaf6tdzEaEGJ jPi7it5gCru5usYFVPBcX7LMkzkT3trvcVWWGnRCK9QQAu42zSpywsX+TRuOJNc5Evge 5BsLH//oU66kmEYogrC4/AO5L8OGc0yp/Y55mg8ufmO50Gp+06CVLekTZpJpRsraRvmZ OYMS/Jidcf22AfKj4zwxzCEeOjAPIX7XRPe8XKHeHpfvEn+lXDPMDRn6F1UoSbzSt/iN DMOw== X-Gm-Message-State: ACrzQf1qj9uknFSvl3zQzU1nH0QIzRo3TnjqTAIx+NyryEdJ+bC479Vf Tnb651uaCr5nxwOTlWS5dJcrRMH1H4UznaAALfe2YeID X-Google-Smtp-Source: AMsMyM6LZKfS+YsQrkXMZYghG5j6Zh84qg7kJse+BNUf8uGJ4aRyItOwOkFOyUV7WqTgDRA+LbtGjTzHKwnJ3/A6gqw= X-Received: by 2002:a05:6871:283:b0:13b:aeb5:f8cc with SMTP id i3-20020a056871028300b0013baeb5f8ccmr30826622oae.67.1667853359774; Mon, 07 Nov 2022 12:35:59 -0800 (PST) In-Reply-To: <83zgd2y2p0.fsf@gnu.org> Received-SPF: pass client-ip=2001:4860:4864:20::2d; envelope-from=plmahan@gmail.com; helo=mail-oa1-x2d.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, HTML_MESSAGE=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-Content-Filtered-By: Mailman/MimeDel 2.1.29 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:140801 Archived-At: On Mon, Nov 7, 2022 at 11:40 AM Eli Zaretskii wrote: > > From: Patrick Mahan > > Date: Mon, 7 Nov 2022 11:18:49 -0800 > > > > I launch using the following method: > > > > /Applications/Emacs.app/Contents/MacOS/Emacs -bg black -fg > > mediumspringgreen -cr yellow -ms blue > > > > This is also how I launch on my linux box (Ubuntu 18.04) minus the macOS > > file path. On linux I am running emacs 25.2.2 and when I launch a new > > frame, it inherits the background/foreground, etc. But this is not > > happening on macOS. I am wondering if it is because I am not using X > > windows on the macOS? > > > > In any case, is there a config method I can use so that all my frames > > inherit the same background, foreground, etc short of setting the > "default" > > face? > > I don't know why it doesn't work for you on macOS (sounds like a bug > specific to that platform, or maybe also to the specific Emacs version > you are using, which is quite old), but the recommended way of > customizing the colors is via default-frame-parameters, which you can > set in your init file. There are examples of that in the Emacs user > manual, and all of the colors you want to change have corresponding > frame parameters. > > I have not upgraded to Emacs 28 yet on macOS because I was running 25.2.2 on Ubuntu and wanted to keep the emacs init file shareable between the two (minus the architecture issues). Of course, it could be that the same bug which prevents the > command-line arguments from working will also defeat the > default-frame-parameters customization... > > Yes, I saw those commands. I looked at my emacs init file and on both I have the following lines - (set-backgorund-color "black") (set-foreground-color "mediumspringgreen") (set-cursor-color "yellow") (set-mouse-color "blue") Which I see only affect the first frame. So I will try setting the default frame parameters. Thanks, Patrick