From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +AXHDTcgf2NTBgEAbAwnHQ (envelope-from ) for ; Thu, 24 Nov 2022 08:41:43 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YF7zDDcgf2NnugAAG6o9tA (envelope-from ) for ; Thu, 24 Nov 2022 08:41:43 +0100 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 D3110DB82 for ; Thu, 24 Nov 2022 08:41:42 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oy6qV-0005aC-OC; Thu, 24 Nov 2022 02:40:31 -0500 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 1oy6qS-0005YL-Eq for help-guix@gnu.org; Thu, 24 Nov 2022 02:40:28 -0500 Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oy6qN-0002F1-NQ for help-guix@gnu.org; Thu, 24 Nov 2022 02:40:28 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 519C140FE5; Thu, 24 Nov 2022 08:40:18 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5eRtWbRYfhGE; Thu, 24 Nov 2022 08:40:16 +0100 (CET) From: Akib Azmain Turja DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1669275616; bh=rZDtA45d83hf9X/0FgOHGmqC62K/4ofKohPCOfn9WVM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Wo4o49WnMNWHQlDTO02aPcN9A36rTdHjvUY/XmQvGdd8If/eri+HrwSQOJwp3t4R8 BZ33wzYhJ9PM/UMMyyjzGL7ZEltfjaA9pZUXFVzwGF/YJYTU9/5JJxRTP4zhMEoGa5 ecCWja5GJwZiNqE52j/xZmzkS6r4epur0ZS8T5QmK9XaQsA6InmAuS9cj9Lww3xN4+ 1LCFYl7769oMaIguSvEzGb3j012Vll5JPKnZJ7yKn9pEPi8Yhv0ve28vbx2bvWXFhV 04N6EZ82HltmbqC0Vq3q0+ur5UgxhEO/Z1UTaaT+X4FXHLbMzqFXs/HYBdkjYNYjNl yFMYK10k4LM9Q== To: Gottfried Cc: help-guix@gnu.org Subject: Re: Guix SD and Emacs In-Reply-To: <4e129781-8e73-09ff-f77f-0b151ecdc4fe@posteo.de> (gottfried@posteo.de's message of "Wed, 23 Nov 2022 17:16:23 +0000") References: <4e129781-8e73-09ff-f77f-0b151ecdc4fe@posteo.de> Date: Thu, 24 Nov 2022 10:16:09 +0600 Message-ID: <87y1s13s3a.fsf@disroot.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=178.21.23.139; envelope-from=akib@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_03_06=1.592, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669275702; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=t1anojs1T9gXeW3KB9j7jX2+UJP/RkeKpdCUWj6btc4=; b=IHmjj/nuQf07AOCQ6tRdbqk3s8pipJAGJKWTgsQnlFGXZTeZMkz+qONnKyqV03bwwMIuPI aZ1yAg0IzXFNM56oNBCcx1j4ML2ce0fHdIL2ms6YZCGQRbYRY9i6ZXf+I1BE8poDpChTaW maIIFTAdc7N8X+eKAYXKad6bAFTKNaFvetpztf//ovx41FyXKRZaBAY+m+B8RcyIFhMcb2 i/ikGMrGUDTxdkn75Rl0Oy260ME21hxgua6Xht54NtMpEXsVQQSX79Ux/8QuPhn/MHPdf4 8SAHrIZzUhF+8Ei1NmBYc8E4aCGGUluCmrz4snygQIWnm3Qf3mN6n/PrpIfyrg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669275703; a=rsa-sha256; cv=none; b=k2r0mXQBsrKUGEfRZhilQQTuRx27YxH4TAOmaXPBFUZjGjMUj4FqZZh5bc7clcfizqufKI 7hMYSs9d/hEG8AaHveHz40kd6FOxK1v7/RT6h5cxmj4FzBrN9jXXc7bJJJr4QlV+nr3XOx OSD89pNECJeRwol+zuieZucpA9Gay+Pho0kI2gQ1WPzMywicKMGdMJtbMUmPsRGTdd+rNR DsEeayaCKF1Kxgni33QC6OJ1ySJfIckYQh/v8N2Im+aLmqEIka+ChvWKYVt8X3+VZ9z2Vd n3ET4Q7hrK7oGKvhxIxsBPVejycnnEZJJFrvaU71gUmmQ6q2FDe3zaf0cC2suA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=Wo4o49Wn; dmarc=pass (policy=reject) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -9.80 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=Wo4o49Wn; dmarc=pass (policy=reject) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: D3110DB82 X-Spam-Score: -9.80 X-Migadu-Scanner: scn0.migadu.com X-TUID: R9iMI7FL1pSW --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Gottfried writes: > Hi Guixers, > > --------------------------------------------------- > I have got 4 questions: > --------------------------------------------------- > 1.question > > I created a "init.el" file for Emacs. > > Where should it go in Guix SD? > > I have got a hidden directory (or should I say "folder"?) in my user > directory: .emacs.d > and a hidden file: .emacs > > David Wilson proposed: > ~/.config/emacs/init.el - Follows Linux desktop environment guidelines > (recommended on Linux!) > This means to create a directory "emacs" in /.config directory > -------------------------------------------------- ~/.emacs.d/init.el: Works. ~/.emacs: Works. ~/.config/emacs/init.el: Works, and I'm using it. > > 2.question > > If I have questions about emacs where can I ask? > Guix help is for Guix, but where can I ask for emacs questions? > > There won't be probably not many, but when I have time, I am working > on setting up my emacs and am starting to use it more often. > -------------------------------------------------- help-gnu-emacs list. > > 3. question > > in my created init.el file which I put into the directory /.emacs.de > > for learning I added: > > ;; Display line numbers in every buffer > (global-display-line-numbers-mode 1) > > When I press C+M x with the cursor between these lines there appear > the line numbers immediately. > > When I close emacs and open it again the lines don't appear. > This means that my init.el file is not read. > How can I configure this, so that everything I put into my init.el > file will be recognised, when starting emacs? > > ---------------------------------------------------- Where did you put your init.el? How are you invoking the Emacs command? > > 4.question > > To start with the right order structure, > ( I like order without disorder) > I would like to put everything in my "init.el" file. > > I choose the "misteriose-theme.el (on the startup screen: "customize > startup") > it created a "misterios-theme.el" file in my /.emacs.d directory. > I thought it should go to the init.el file, which I have created later. > Can I copy the content of this file into the init.el file? > > (deftheme misterioso > "Predominantly blue/cyan faces on a dark cyan background.") > > (custom-theme-set-faces > 'misterioso > '(cursor ((((class color) (min-colors 89)) (:background "#415160")))) > '(fringe ((((class color) (min-colors 89)) (:background "#2e3748")))) > '(highlight ((((class color) (min-colors 89)) (:background "#338f86" > :foreground "#e1e1e0")))) > '(region ((((class color) (min-colors 89)) (:background "#2d4948" > :foreground "#e1e1e0")))) > '(isearch ((((class color) (min-colors 89)) (:background "#fcffad" > :foreground "#000000")))) > '(lazy-highlight ((((class color) (min-colors 89)) (:background > "#338f86")))) > '(trailing-whitespace ((((class color) (min-colors 89)) (:background > "#ff4242")))) > '(mode-line ((((class color) (min-colors 89)) (:background "#212931" > :foreground "#eeeeec")))) > '(mode-line-inactive ((((class color) (min-colors 89)) (:background > "#878787" :foreground "#eeeeec")))) > '(header-line ((((class color) (min-colors 89)) (:background > "#808080" :foreground "#333333")))) > '(minibuffer-prompt ((((class color) (min-colors 89)) (:foreground > "#729fcf" :weight bold)))) > '(font-lock-builtin-face ((((class color) (min-colors 89)) > (:foreground "#23d7d7")))) > '(font-lock-comment-face ((((class color) (min-colors 89)) > (:foreground "#74af68")))) > '(font-lock-constant-face ((((class color) (min-colors 89)) > (:foreground "#008b8b")))) > '(font-lock-function-name-face ((((class color) (min-colors 89)) > (:foreground "#00ede1" :weight bold)))) > '(font-lock-keyword-face ((((class color) (min-colors 89)) > (:foreground "#ffad29" :weight bold)))) > '(font-lock-string-face ((((class color) (min-colors 89)) > (:foreground "#e67128")))) > '(font-lock-type-face ((((class color) (min-colors 89)) (:foreground > "#34cae2")))) > '(font-lock-variable-name-face ((((class color) (min-colors 89)) > (:foreground "#dbdb95")))) > '(font-lock-warning-face ((((class color) (min-colors 89)) > (:foreground "#ff4242" :weight bold)))) > '(button ((((class color) (min-colors 89)) (:underline t)))) > '(link ((((class color) (min-colors 89)) (:foreground "#59e9ff" > :underline t)))) > '(link-visited ((((class color) (min-colors 89)) (:foreground > "#ed74cd" :underline t)))) > '(ediff-even-diff-A ((((class color) (min-colors 89)) (:background > "#1d2430")))) > '(ediff-even-diff-B ((((class color) (min-colors 89)) (:background > "#1d2430")))) > '(ediff-even-diff-C ((((class color) (min-colors 89)) (:background > "#1d2430")))) > '(ediff-odd-diff-A ((((class color) (min-colors 89)) (:background > "#415160")))) > '(ediff-odd-diff-B ((((class color) (min-colors 89)) (:background > "#415160")))) > '(ediff-odd-diff-C ((((class color) (min-colors 89)) (:background > "#415160")))) > '(gnus-group-news-1 ((((class color) (min-colors 89)) (:foreground > "#ff4242" :weight bold)))) > '(gnus-group-news-1-low ((((class color) (min-colors 89)) > (:foreground "#ff4242")))) > '(gnus-group-news-2 ((((class color) (min-colors 89)) (:foreground > "#00ede1" :weight bold)))) > '(gnus-group-news-2-low ((((class color) (min-colors 89)) > (:foreground "#00ede1")))) > '(gnus-group-news-3 ((((class color) (min-colors 89)) (:foreground > "#23d7d7" :weight bold)))) > '(gnus-group-news-3-low ((((class color) (min-colors 89)) > (:foreground "#23d7d7")))) > '(gnus-group-news-4 ((((class color) (min-colors 89)) (:foreground > "#74af68" :weight bold)))) > '(gnus-group-news-4-low ((((class color) (min-colors 89)) > (:foreground "#74af68")))) > '(gnus-group-news-5 ((((class color) (min-colors 89)) (:foreground > "#dbdb95" :weight bold)))) > '(gnus-group-news-5-low ((((class color) (min-colors 89)) > (:foreground "#dbdb95")))) > '(gnus-group-news-low ((((class color) (min-colors 89)) (:foreground > "#008b8b")))) > '(gnus-group-mail-1 ((((class color) (min-colors 89)) (:foreground > "#ff4242" :weight bold)))) > '(gnus-group-mail-1-low ((((class color) (min-colors 89)) > (:foreground "#ff4242")))) > '(gnus-group-mail-2 ((((class color) (min-colors 89)) (:foreground > "#00ede1" :weight bold)))) > '(gnus-group-mail-2-low ((((class color) (min-colors 89)) > (:foreground "#00ede1")))) > '(gnus-group-mail-3 ((((class color) (min-colors 89)) (:foreground > "#23d7d7" :weight bold)))) > '(gnus-group-mail-3-low ((((class color) (min-colors 89)) > (:foreground "#23d7d7")))) > '(gnus-group-mail-low ((((class color) (min-colors 89)) (:foreground > "#008b8b")))) > '(gnus-header-content ((((class color) (min-colors 89)) (:weight > normal :foreground "#ffad29")))) > '(gnus-header-from ((((class color) (min-colors 89)) (:foreground > "#e67128" :weight bold)))) > '(gnus-header-subject ((((class color) (min-colors 89)) (:foreground > "#dbdb95")))) > '(gnus-header-name ((((class color) (min-colors 89)) (:foreground > "#00ede1")))) > '(gnus-header-newsgroups ((((class color) (min-colors 89)) > (:foreground "#e67128")))) > '(message-header-name ((((class color) (min-colors 89)) (:foreground > "#ffad29" :weight bold)))) > '(message-header-cc ((((class color) (min-colors 89)) (:foreground > "#e67128")))) > '(message-header-other ((((class color) (min-colors 89)) (:foreground > "#e67128")))) > '(message-header-subject ((((class color) (min-colors 89)) > (:foreground "#dbdb95")))) > '(message-header-to ((((class color) (min-colors 89)) (:foreground > "#00ede1")))) > '(message-cited-text ((((class color) (min-colors 89)) (:foreground > "#74af68")))) > '(message-separator ((((class color) (min-colors 89)) (:foreground > "#23d7d7")))) > '(ansi-color-black ((((class color) (min-colors 89)) (:background > "#2d3743" :foreground "#2d3743")))) > '(ansi-color-red ((((class color) (min-colors 89)) (:background > "#da3938" :foreground "#da3938")))) > '(ansi-color-green ((((class color) (min-colors 89)) (:background > "#74af68" :foreground "#74af68")))) > '(ansi-color-yellow ((((class color) (min-colors 89)) (:background > "#dbdb95" :foreground "#dbdb95")))) > '(ansi-color-blue ((((class color) (min-colors 89)) (:background > "#34cae2" :foreground "#34cae2")))) > '(ansi-color-magenta ((((class color) (min-colors 89)) (:background > "#b33c97" :foreground "#b33c97")))) > '(ansi-color-cyan ((((class color) (min-colors 89)) (:background > "#008b8b" :foreground "#008b8b")))) > '(ansi-color-white ((((class color) (min-colors 89)) (:background > "#e1e1e0" :foreground "#e1e1e0")))) > '(ansi-color-bright-black ((((class color) (min-colors 89)) > (:background "#415160" :foreground "#415160")))) > '(ansi-color-bright-red ((((class color) (min-colors 89)) > (:background "#ff4242" :foreground "#ff4242")))) > '(ansi-color-bright-green ((((class color) (min-colors 89)) > (:background "#74cd65" :foreground "#74cd65")))) > '(ansi-color-bright-yellow ((((class color) (min-colors 89)) > (:background "#ffad29" :foreground "#ffad29")))) > '(ansi-color-bright-blue ((((class color) (min-colors 89)) > (:background "#59e9ff" :foreground "#59e9ff")))) > '(ansi-color-bright-magenta ((((class color) (min-colors 89)) > (:background "#ed74cd" :foreground "#ed74cd")))) > '(ansi-color-bright-cyan ((((class color) (min-colors 89)) > (:background "#00ede1" :foreground "#00ede1")))) > '(ansi-color-bright-white ((((class color) (min-colors 89)) > (:background "#eeeeec" :foreground "#eeeeec")))) > '(default ((((class color) (min-colors 4096)) (:background "#2d3743" > :foreground "#e1e1e0")) (((class color) (min-colors 89)) (:background > "#3a3a3a" :foreground "#e1e1e0"))))) > > (provide-theme 'misterioso) > > ---------------------------------------------------------------- > > in my /.emacs file there is this content: > > > (custom-set-variables > ;; custom-set-variables was added by Custom. > ;; If you edit it by hand, you could mess it up, so be careful. > ;; Your init file should contain only one such instance. > ;; If there is more than one, they won't work right. > '(ansi-color-faces-vector > [default default default italic underline success warning error]) > '(ansi-color-names-vector > ["#2e3436" "#a40000" "#4e9a06" "#c4a000" "#204a87" "#5c3566" > "#729fcf" "#eeeeec"]) > '(custom-enabled-themes '(tsdh-dark whiteboard)) > '(font-use-system-font t)) > (custom-set-faces > ;; custom-set-faces was added by Custom. > ;; If you edit it by hand, you could mess it up, so be careful. > ;; Your init file should contain only one such instance. > ;; If there is more than one, they won't work right. > '(default ((t (:family "DejaVu Sans Mono" :foundry "PfEd" :slant > normal :weight normal :height 120 :width normal))))) > > Probably it was created, when I choose the new theme. > > -------------------------------------------------------------------- You can indeed put the theme in your init.el. But I would recommend against it, because as a Emacs newcomer, your config might grow too big for you to manage. From my experience, too big init.el is one of the main reasons behind declaring Emacs bankruptcy (throwing your current init.el and starting a new one). So I recommend to keep theme independent of your init.el, so that if you ever declare Emacs bankruptcy, that file will be reusable. > > > > Kind regards > > Gottfried > > =2D-=20 Akib Azmain Turja, GPG key: 70018CE5819F17A3BBA666AFE74F0EFA922AE7F5 Fediverse: akib@hostux.social Codeberg: akib emailselfdefense.fsf.org | "Nothing can be secure without encryption." --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmN+8AkACgkQVTX89U2I YWvvHg//a5BZs7QANJBPxTuOl3cEEA6PmFzKFQXwv3jKhPrxekz4aWiQqOHQ5jMt f4AbRonvIW+M6RoTUAgXq3hbM+arZlGGu1H2lnK0uFYnDuY6blOVOA0YQKrPg8mh VSaHvlRYUTRwaBN0pQojv9Qq//r8Ygh/VTDUYAO0kIkSGUZSvmq7yAabr6wH8GUt ZVrrSWyl4wf9e3XDAyl/E6CAQjjHnHT86WftJ2Lk5OxjX5NYC431mdvBuiiEm4me I5+wOB03NC01OoucqeVrAMuQ6yDXtyofx0Twi7QM3SA5zULOd3yei847AGUamVBS opdc5RSZgsZ/CKayPuf3R0wpB2uPNFI2MNhXVi3ekl2hAMpUfXYbArEy5v51WAVa xUCT4oXxKgNaQwJ04sbFqaPKUr4CctUmA68U1FHlzBX8ZqViZab+ruPWrK+lEffE eJQzRDnYrb9zvp+at6QFJK5kwuqKMXTSw71ZaqKCpPIV20lg7WMEGYR1RFX0g8vf m83SAdf0nR+yg6jOgXSuw7YPNyCU26ijICgxldr8cCgpembFgKl5tyMMh3COQedT 1swDdrhQzPy75xwGg96mpjC55Ra5bHA/EfqIvbfm9tkD/wmWTrFDnwTPV075aEU4 5YxaWEPrN2PgeEZMtYrwQEJ9Hrz8NeqaAvUslB5ewpBk+bvvMWk= =dxL0 -----END PGP SIGNATURE----- --=-=-=--