all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jay Sulzberger <jays@panix.com>
To: help-guix@gnu.org
Subject: Re: text editor
Date: Tue, 22 Feb 2022 19:33:22 +0000 ()	[thread overview]
Message-ID: <Pine.NEB.4.64.2202221820100.9879@panix3.panix.com> (raw)
In-Reply-To: <7d8a96bf-37c6-fc43-de3b-d9de990813d1@posteo.de>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed, Size: 4755 bytes --]


On Tue, 22 Feb 2022, Gottfried <gottfried@posteo.de> wrote:

> Hi, thanks for Your email.

De nada and you are very welcome!

> I am not sitting the whole day in front of a computer, I am working in a 
> technical job to help people.
>
> So I didn´t have time to learn any computer language, emacs etc. because I 
> didn´t need it for my life yet.
>
> Which editor You would propose , I should use, to show which brackets belong 
> to each other, as you described in your email?

These days, well for some decades, I use Emacs.  I think Emacs can be
learned bit by bit.  Usually I run Emacs in an X "terminal emulator".
(Today at home, konsole is the X terminal emulator I use.)  So usually I
have the terminal with the bash shell running in it.  The below command

   guacamole:~$ mkdir EXAMPLES
   guacamole:~$ cd EXAMPLES
   guacamole:~/EXAMPLES$ echo "abc ABC (* 6 7)" >> example
   guacamole:~/EXAMPLES$ ls -l
   total 4
   -rw-r--r-- 1 guaca guaca 16 Feb 22 13:43 example
   guacamole:~/EXAMPLES$ cat example
   abc ABC (* 6 7)
   guacamole:~/EXAMPLES$

So you are now in the directory

   ~/EXAMPLES

If you now issue the command

   emacs -nw example

Emacs starts up and you are thrown into Emacs.  Your screen looks
something like this (actually no spaces on the left):

   File Edit Options Buffers Tools Help
   abc ABC (* 6 7)



































   -UU-:----F1  example        All L2     (Fundamental)

Now, hold down the "Cntrl" key and hit, still holding down the "Cntrl" key, 
hit the "e' key.  You should now have the cursor at the end of the line

   abc ABC (* 6 7)

Now just start typing.  Say you type

   Oi, I am in Emacs!  The Elisp has me!

Now the top line should read

   abc ABC (* 6 7)Oi, I am in Emacs!  The Elisp has me!

Here is the most second most important command of Emacs:
Hold down the "Cntrl" let, and still holding down the "Cntrl" key,
hit the "x" key, then, again, hold down the "Cntrl" let, and still
holding down the "Cntrl" key, hit the "c" key.  Emacs will now say to
you something like:

   Save file /gibber/EXAMPLES/example? (y, n, !, ., q, C-r, C-f, d or C-h)

Hit the "y" key and Emacs will, gently and courteously, let you go.

If you now do

   cat example

you should see the contents of the file example.  Let me check on my machine:

   guacamole:~/EXAMPLES$ cat example
   abc ABC (* 6 7)Oi, I am in Emacs!  The Elisp has me!
   guacamole:~/EXAMPLES$

So by direct demonstration, we know that Emacs has an avatar, the
avatar "just a text editor".

I now reveal a Great Secret of Emacs:

   Invite a friend who knows Emacs to sit with you, and with Emacs, and
   together learn of the Mysteries.

A small secret of Emacs:

   If you start Emacs like so

   emacs -nw

usually you will be thrown into Emacs and shown a tutorial, which, on
the screen, starts like so:

   File Edit Options Buffers Tools Help
   Warning Warning!!!  Pure space overflow    !!!Warning Warning
   (See the node Pure Storage in the Lisp manual for details.)
   Welcome to GNU Emacs, one component of the GNU/Linux operating system.

   Get help           C-h  (Hold down CTRL and press h)
   Emacs manual       C-h r        Browse manuals     C-h i
   Emacs tutorial     C-h t        Undo changes       C-x u
   Buy manuals        C-h RET      Exit Emacs         C-x C-c
   Activate menubar   M-`
   (‘C-’ means use the CTRL key.  ‘M-’ means use the Meta (or Alt) key.
   If you have no Meta key, you may instead type ESC followed by the character.)
   Useful tasks:
   Visit New File                  Open Home Directory
   Customize Startup               Open *scratch* buffer

   GNU Emacs 27.1 (build 1, i686-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.16.0)
    of 2021-11-27, modified by Debian
   Copyright (C) 2020 Free Software Foundation, Inc.

   GNU Emacs comes with ABSOLUTELY NO WARRANTY; type C-h C-w for full details.
   Emacs is Free Software--Free as in Freedom--so you can redistribute copies
   of Emacs and modify it; type C-h C-c to see the conditions.
   Type C-h C-o for information on getting the latest version.

   If an Emacs session crashed recently, type M-x recover-session RET
   to recover the files you were editing.










   -UUU:%%--F1  *GNU Emacs*    All L1     (Fundamental) -------------------------------------
   Package cl is deprecated


The tutorial sometimes helps.

Of some importance:

   Pay no attention to any statement by Emacs about
   1. pure space
   2. cl


Gottfried, Heaven forwarding, I will rant^Wexplain more in a bit.

Thanks!

oo--JS.

  parent reply	other threads:[~2022-02-22 19:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-22 18:14 text editor Gottfried
2022-02-22 19:01 ` Julien Lepiller
2022-02-22 19:16 ` Dr. Arne Babenhauserheide
2022-02-23  6:24   ` Dr. Arne Babenhauserheide
2022-02-22 19:33 ` Jay Sulzberger [this message]
2022-02-22 20:22   ` text editor, ah, just a typo Jay Sulzberger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.NEB.4.64.2202221820100.9879@panix3.panix.com \
    --to=jays@panix.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.