From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aBhgBjcgf2MnRQAAbAwnHQ (envelope-from ) for ; Thu, 24 Nov 2022 08:41:43 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id eDNiBjcgf2OTxAAAauVa8A (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 CDAF8221BC 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 1oy6qa-0005dC-Mv; Thu, 24 Nov 2022 02:40:36 -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 1oy6qV-0005aH-3W for help-guix@gnu.org; Thu, 24 Nov 2022 02:40:31 -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 1oy6qT-0002KM-GR for help-guix@gnu.org; Thu, 24 Nov 2022 02:40:30 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 4793C41033; Thu, 24 Nov 2022 08:40:27 +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 gfXaodKuk1_C; Thu, 24 Nov 2022 08:40:26 +0100 (CET) From: Akib Azmain Turja DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1669275626; bh=4GDFKddafR/bo8XVSlzv1HwHcUuHWsIzPl9uOZCQCDQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=g8bZ/9t/QDqD1v7KEC7+x06xYUPU2gYI2lzjFOdbIlJaoFMS2SARORymLlzdor4jQ 5PuAo8TOoVOHk85c1UC5R6wduHuUI9rqO6sVgKrr27L3Nxr3BXUrvsMOWY2Y9RjAnL EwQ0FWR3FsXDbec20A9LG1c3XrhFenQsJnz1g2UR2y+xKqT6oCH58HmePIDitTC3Cq 2wY2Kg74a3lTW8J+RNj2JK/Y5iIg0aYOtNT3nv9yk8ueUAEG5/da41OT+LnFSZ68lF t0/txfc+xj54De4qMb1/AKXhp905FTNglAC2r0Ra8dbvvsajgt74nSc0jI+6diCKV+ zXcqAL97LSy6g== To: "(" Cc: Gottfried , help-guix@gnu.org Subject: Re: Guix SD and Emacs In-Reply-To: (wolf@wolfsden.cz's message of "Wed, 23 Nov 2022 21:25:20 +0100") References: <4e129781-8e73-09ff-f77f-0b151ecdc4fe@posteo.de> Date: Thu, 24 Nov 2022 10:20:20 +0600 Message-ID: <87tu2p3rwb.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=0KTJhWLhHe02ph1u9x0GnrpdbCP5WPGPiVOdkT/xHtw=; b=KaFO/kOp/GiMRenz2t2dNkvDHKVy/lxYM3WYvV1kpFsgyOv9ZdkTckqpxrklKPTHMc0lHa 2YKfDQIwD8PArOatpP9qf9iQnYyC4Ilzk9Q+Y8gl55w7prjxrqIfN/n+zhj09EMx5Jh8t7 ugXur3jZ2t7d8mgKqLocUjA+OqIiAr7Bbv3bvHryZT10K4Vi9HA4eIrW9OcY9UFCCHJYij fcwV0QjSR9Q2+x93T+JteEL6wOaFZpjkV+J0PSvbvC1APuywdesXm1INVOiNdf4eVqoe84 vQjSP+MkDmKP16EtJjJghM5lpbpmjdY+ax4xuG7OIB2ObB3zTKziicOLdI5EzQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669275702; a=rsa-sha256; cv=none; b=nxBPaBTd/N/i4TgKVtrJIE4m3PurcIidf8pOjbwZheUFSVUjUmGQJ0UhXMbrQyUOaWcU6G YgRSTFlIB5pZ0aw0q8qschaCXW7VgB1hKlzL9KBm8XMSvrjvZssihB/rSSnJEwqFKLxZtc zOHGYinSpbFI9qpfHgYj/qjqMBjQ5KaxRg27HwAg2TYhPU69wZvBjDJkWRTWmW2veuM9dt vCgGnQeyz5i/+EtEjnRKa4pUwXlydXYaOwJ/J+2yhmnnqLlnAGpEHLq5uPrtOqw2+VSqEo 7DIZPmkhihN0lCoqBUfcws6PHAli2l6VuMa4sJLZsiwQZIiI9D4MG6xFKH3x1g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b="g8bZ/9t/"; 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="g8bZ/9t/"; 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: CDAF8221BC X-Spam-Score: -9.80 X-Migadu-Scanner: scn0.migadu.com X-TUID: euNHF7jPQkdg --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Wolf writes: > On 2022-11-23 17:30:07 +0000, ( wrote: >> That's why I use this code to redirect all custom customisations into >> ~/.config/emacs/custom.el: >>=20 >> (setq custom-file >> (concat (or (getenv "XDG_CONFIG_HOME") >> (concat (getenv "HOME") "/.config")) >> "/emacs/custom.el")) >> (load custom-file) > > I'm totally new to emacs, so this might be very stupid question, but > based on the internets I've put the following into the init.el: > > (setq custom-file (expand-file-name "custom.el" user-emacs-directory)) > (load-file custom-file) > > Is there any practical difference or reason to prefer your version? > > W. No, I think yours one is better, because it's OS independent. I can suggest the following, which basically the same but will save you a few byte on your HDD/SSD: =2D-8<---------------cut here---------------start------------->8--- (setq custom-file (locate-user-emacs-file "custom.el")) (load-file custom-file) =2D-8<---------------cut here---------------end--------------->8--- =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+8QUACgkQVTX89U2I YWt7jxAAlMXxZnOZyV3OQ833sKDb25NH5KR8ruTrox0B79Pvp8WHDazjWyNa6SJQ /vLYSkQr1GNfRXvfOSaxbzFvCYT90ahZa9KysgyIhvAUOKc8q2mxYISCPoOHs+wH s2zmAAht8PfLVQL/wQx+X6ca15gHkae0bEJWlb80I8T0pgRO52G/41/xn9tZRpt4 AR8wUliRDR9h+IodzjU3oYgIB+fi/EdLI2crZiRIsTAFcsHXFKAUZSSHqXhvav30 jDX6X5mgPZ9Ie3tmnpEgwou6VP4kBJ0Ij07bNx+j3hiv3qYTxC4VqfUvU0STlpHW h4BKSothIWJsrQ/i6g+5X/V31nizFqUAfo0A/wuD/jc03lmUVUiln1lHSeu0ybd0 lEuelUvLZHyGl1IQjlPH9iOkbnLL1MHkiRuZ/10Yv1zZhawJ+Dx+uGK3v0u8vua6 8fO6+o2WCKpSuABgWixd3TERMUJOn8h7fsAoHmLeXcREXqY6Ld+H/zBvZDOldGXy YiaAUZnMeSVNdQbF7MOSMLTAwhVaMMXw2HWwGbI1sI+VmOetHXwlL+vxsQ/OzYVA L60ImoXge6wMzokhjypmrKPjmBpU4TwhRB7EdZGUbBxLZm/9IdOE2JCSpcucbsmr mty/knZ0ccSYh/feWf8va1YXV4rSHV24OLjUkur8Ldcq8e96tJg= =kABD -----END PGP SIGNATURE----- --=-=-=--