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 ms9.migadu.com with LMTPS id gBOkE0dgDGQ/TwAASxT56A (envelope-from ) for ; Sat, 11 Mar 2023 12:04:39 +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 OKtjE0dgDGTBEAEAauVa8A (envelope-from ) for ; Sat, 11 Mar 2023 12:04:39 +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 0F4612A93E for ; Sat, 11 Mar 2023 12:04:39 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pax1E-0006gE-LJ; Sat, 11 Mar 2023 06:04:08 -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 1pax1D-0006fz-0H for help-guix@gnu.org; Sat, 11 Mar 2023 06:04:07 -0500 Received: from smtpm4.myservices.hosting ([185.26.105.235]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pax1B-0003nA-Eo for help-guix@gnu.org; Sat, 11 Mar 2023 06:04:06 -0500 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpm4.myservices.hosting (Postfix) with ESMTP id 099B5203EE; Sat, 11 Mar 2023 12:03:54 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id B70C18009D; Sat, 11 Mar 2023 12:03:54 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id PiEktP4CFSFZ; Sat, 11 Mar 2023 12:03:54 +0100 (CET) Received: from [192.168.1.239] (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 5CA1380079; Sat, 11 Mar 2023 12:03:54 +0100 (CET) Message-ID: <5581842e-2cee-0824-a996-f16e23eaba92@makinata.eu> Date: Sat, 11 Mar 2023 11:03:49 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: open config.scm with sudo and gedit or emacs Content-Language: en-US To: Gottfried References: Cc: help-guix@gnu.org From: Bruno Victal In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.26.105.235; envelope-from=mirai@makinata.eu; helo=smtpm4.myservices.hosting X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.001, 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678532679; a=rsa-sha256; cv=none; b=IZxMeKy7AtWz5wlzGn/r5NBXqhB5Ok+1zsTpZb4jDyjr6d5A3xqPq+J+MZ8UoJyUg7oIRb OmObdoB9iTAL1tB/UItwITeSEl/lmxVo6rVGKNoxDH1j6d8wMliP4EMcDLdvptj8sHjzIf QOC3FP2lqKsVM8KMOipU2C1H0RPjEHt0eh6MRul5YMstIHmfntzee04+3qvW50xQeWZGlv 451oxVfvK9Ti+WisFTTzBzzBK0k7gXvJ1NaMAUb6E6qNbCp5PIEE+OIbYtuFkRVf5lDMjQ RbCDVnXt1VvsCPIkBuQy9QAYDCQQuQaYLUt7Fk2Ff1nbFeO4OrrvyXU2J+nEeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678532679; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=AOl3fBQnc6tI1m9eXGbgnRch2z+ooceuvoWLqYjK/Xs=; b=tNRhJOJCn5H/GEQrhqmNVD4g9NneWCrh5LD8B/4q1+toCv9MSdM0OOTukTwNumuqWGISlp TaMGHEMpIcU3UGqvJzmVFcSL9irG/qKZhsbaJxR78r66J0rZqmfu4JNWKMDdP6b7nul4k0 f/EY8DtWUs1ZrwNwSiCSIIZOw6IPOxsieKF8sdptpxLVGtHSxdrrA4EXbvi1KsImAcok6V /P9FiQWpMDHDtPqFkSKExKo7maYtg9gtNcAmE5cOj52oCVpNW04cWJJMOVA9znjbmzG3UP lXZtAt8mP45orjsQUhFCmL6ghFToT+Q0J7kO+tBucjXYp6YS/N3udmJd1Y7Z3A== X-Migadu-Spam-Score: -3.00 X-Spam-Score: -3.00 X-Migadu-Queue-Id: 0F4612A93E X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; 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"; dmarc=none X-TUID: qVWI75IdFVZQ Hi Gottfried, On 2023-03-11 10:33, Gottfried wrote: > Hi, > > because of my limited knowledge > when opening my config.scm file with sudo > I can do it only with nano > But nano doesn’t show the matching parenthesis. > > 1. > I would like to open my config.scm file with emacs or gedit, > because both show the matching parenthesis. Change the EDITOR environment variable, i.e. $ export EDITOR=emacs > > How can I do that? > ..................................................... > 2. > In emacs it opens the file only in read-able mode. > How can I change this? Use sudoedit. > > 4. > Are there commands on the command line > to open my config.scm file with emacs/gedit in sudo mode? > .................................................... EDITOR=emacs sudoedit config.scm Cheers, Bruno