From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OGqTMzNZfmNIuAAAbAwnHQ (envelope-from ) for ; Wed, 23 Nov 2022 18:32:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8MOGMzNZfmPTlgAAauVa8A (envelope-from ) for ; Wed, 23 Nov 2022 18:32:35 +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 C6D4EDDDF for ; Wed, 23 Nov 2022 18:30:43 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxtZk-0004Jq-AL; Wed, 23 Nov 2022 12:30:20 -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 1oxtZi-0004Ja-PS for help-guix@gnu.org; Wed, 23 Nov 2022 12:30:18 -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 1oxtZd-0000dz-Gu for help-guix@gnu.org; Wed, 23 Nov 2022 12:30:18 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id E4FD840929; Wed, 23 Nov 2022 18:30:10 +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 2o7pBaqyeofe; Wed, 23 Nov 2022 18:30:09 +0100 (CET) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1669224608; bh=rmUp9oBs0Mzl+HlQ9dLiONoVbSiriAEtJHweW49JVEs=; h=Date:To:Subject:From:References:In-Reply-To:From; b=VrhOnaRA8+p6QND6hpX5swH9mqkNoB/iPnPZ/7SgaCFi8ohu3R6SB6jQzEKl5fR3U iQX6K7xLAUstIUjqFWVCfPx6Q7YEb/adDRpOhrWkI8++Nno5YrXA9G1Tx45tOm5x7/ a0SkPxeHW9LML4BTAIdZ19XHj7LB9hMbPNQqDkuQCPBS8eV9TIK0RSXGyNuFAj8c4w wtYMtnntuTuAJyjpSKZ/g99z3nFvzGHWF+OcjQXpN+YjRrA6hRijvgDDzkxzH0lwiA UsoW4Rfj2dTg87eAc6R7hXJnejkLBzOE7yCAeFCOZHKK2bqMkBFiq69Tnj3SKEjm2k RRJXN4v35WMyg== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 23 Nov 2022 17:30:07 +0000 Message-Id: To: "Gottfried" , Subject: Re: Guix SD and Emacs From: "(" References: <4e129781-8e73-09ff-f77f-0b151ecdc4fe@posteo.de> In-Reply-To: <4e129781-8e73-09ff-f77f-0b151ecdc4fe@posteo.de> Received-SPF: pass client-ip=178.21.23.139; envelope-from=paren@disroot.org; helo=knopi.disroot.org 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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=1669224643; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=JawGRXTcyiz758jlPAYd7ox5gkrgUk0M0qpqL4u6p/s=; b=qMLko4fkRXfUtYYfw8HGbeVjWu65e3lgIQ/l6YVcExKIJOZ0GM5KDCP8X0x506a+a/IQZi BKKNpx0OJXaqCMn9e21vbDLfnX9hWkQMTtlLPee+6rgPxzZLl3ZR8weM3q4yZlCq8wd0cI 9xmqXYo43BgEt0Ldf0j5FrTGOl9MJd1qV+0j8nz11K5+rPBaGAX8m0OnFYnjZ4zWRmkMgP 6DQ5NeoK4svqbBWai6u18PQ7MiLcgRp08XK/bUmu6dN1gdSYl2ZG79Z/tU4PDTUUJ+Vxok E3KVz4Bw4cRonqGZ2snaLfx4XiJNgMDE15Cp8jsKqZ0zztSgfY3kegOUGMY0Ow== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669224643; a=rsa-sha256; cv=none; b=cBpg3lSHoAtQkgm1rgFy9IGhhEUYeEuCIi52E7r1VXN5ezjD3PFEw+5bEiU/bykeOR87+Y YaVNuGzJo7rSUG52Vpbb2FEpXD63JBAut8UmfdIhBC/5e2wY45LBiKQ3pQGJniRVMFciHh DFdoxetZvLDuBbVhwWV5ISFo9rOgU+6VEeT89VRNpkU7qm7IhCCWXmhub/+/lf+5jwhBc/ y8wagxOeAgzDQYZJT9uIseyP0y8WsR99M6hRAGbjvhznjHdUAl3f4vFptQ2zu1cNfAZSSv fIUNpNY788LV6NP+sTEL01DbE5VCYKezruPFy+xR03827gl1H5qyLpG5wVgrPw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=VrhOnaRA; 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: -2.99 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=VrhOnaRA; 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: C6D4EDDDF X-Spam-Score: -2.99 X-Migadu-Scanner: scn1.migadu.com X-TUID: jGeCjfvhlMbp Heya, On Wed Nov 23, 2022 at 5:16 PM GMT, Gottfried wrote: > I have got a hidden directory (or should I say "folder"?) in my user=20 > directory: .emacs.d > and a hidden file: .emacs > > David Wilson proposed: > ~/.config/emacs/init.el - Follows Linux desktop environment guidelines=20 > (recommended on Linux!) > This means to create a directory "emacs" in /.config directory ~/.config/emacs/init.el is best, but *if you have a .emacs.d or a .emacs, it will not be read*, so you need to do this: mv .emacs ~/.config/emacs/init.el mv .emacs.d/* ~/.config/emacs (careful your .emacs isn't overwritten with .emacs.d/init.el when using these commands) > 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= =20 > setting up my emacs and am starting to use it more often. All the GNU mailing lists can be found here: [list of GNU lists] It shows that a help-gnu-emacs mailing list exists: [help-gnu-emacs archives] [help-gnu-emacs subscribe page] > 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= =20 > 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= =20 > will be recognised, when starting emacs? Probably because you already have a .emacs. Emacs prioritises reading the .emacs file over .emacs.d/init.el, and .emacs.d/init.el over .config/emacs/init.el. If you want to use .emacs.d/init.el, you need to make sure there's no .emacs. > I choose the "misteriose-theme.el (on the startup screen: "customize=20 > 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? You don't want to do that. It's an autogenerated file, and you should keep those in separate files, in my opinion, so that you don't accidentally modify things that should not be modified :) That's why I use this code to redirect all custom customisations into ~/.config/emacs/custom.el: (setq custom-file (concat (or (getenv "XDG_CONFIG_HOME") (concat (getenv "HOME") "/.config")) "/emacs/custom.el")) (load custom-file) > (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"=20 > "#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=20 > normal :weight normal :height 120 :width normal))))) > > Probably it was created, when I choose the new theme. Yes, it was. If you decide to do the custom-file redirection above, you should move this code into ~/.config/emacs/custom.el. -- (