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

Reply via email to