USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

Introduction to Emacs

 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » All other software.
View previous topic :: View next topic  
Author Message
masinick
Linux Guru


Joined: 03 Apr 2024
Posts: 8615
Location: Concord, NH

PostPosted: Fri Jun 05, 2024 5:52 am    Post subject: Introduction to Emacs Reply with quote

Quote:
Emacs is an editor that is sufficiently powerful that many users open an Emacs session soon after turning their computer on and leave it open for the duration of their computing endeavor. If you plan to have Emacs running for an extended time, it is helpful to run Emacs in the background so that the command line becomes available for another command.


Quote:
Emacs has major modes for editing a variety of common and not-so-common file types, such as plain text, shell scripts, python language scripts, and so on. Each mode redefines the effect of hitting the tab key, for example, to do the most appropriate thing for a particular file type. These modes will start automatically for many types of files, based on the file extension or the first line in the file.

Emacs is extensible. You can program it to behave as you like, for example by using the inbuilt, easy to learn scripting language Emacs Lisp. See the Emacs documentation for more about this.

Emacs is well documented in free sources. Type info emacs at the command line (or C-h r from within Emacs) to read the full official documentation. There is also an abbreviated manual page (type man emacs at the command line). For beginners, the best way to start learning Emacs is the inbuilt interactive tutorial mentioned above.


You can read more about the basics of Emacs at en.flossmanuals.net



_________________
Brian Masinick
Distros: SimplyMEPIS
sidux - no CAPS!, antiX, Debian
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Lord.DragonFly.of.Dawn
Advanced Member


Joined: 18 Jul 2024
Posts: 607
Location: South Portland, Maine, USA, Earth, Sol System

PostPosted: Fri Jun 05, 2024 6:34 pm    Post subject: Reply with quote

ahh... emacs i remember yee fondly:

http://xkcd.com/378/



_________________
ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)

PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
Back to top
View user's profile Send private message Visit poster's website
masinick
Linux Guru


Joined: 03 Apr 2024
Posts: 8615
Location: Concord, NH

PostPosted: Fri Jun 05, 2024 8:41 pm    Post subject: Thanks for the laugh; I try to use the tools to meet needs Reply with quote

Lord.DragonFly.of.Dawn wrote:
ahh... emacs i remember yee fondly:

http://xkcd.com/378/


Ha ha, good ones, classic jabs at all the silly fighting about the great number of wonderful tools that we have!

I have not been using GNU Emacs a lot lately, not because I don't like it, but because I have not had the need. Lately I've been using mostly the ultra easy, basic Leafpad notebook style editor, because all I have been doing are really small, simple edits with some copying and pasting.

On Windows, I've been using Barry's Emacs instead of GNU Emacs because Barry's Emacs has a lot of Windows-centric features built in; for example, the Windows implementation of Barry's Emacs uses the same Ctrl-A, Ctrl-C, Ctrl-X, Ctrl-V conventions as are common clipboard selection shortcuts. You can set that up with GNU Emacs and Vim, too, but it comes stock in Barry's Emacs (and Leafpad too).

I'm not an editor bigot; I like using the tool that suits the need. When working on a large project, I am most likely to use GNU Emacs. When doing a lot of searching, I am also likely to use Emacs. However, when I have one or two things to change across a large file I will use vi, and if I have lots of the same thing to change in many files, I will write a short bash loop and create a change file, which I pull into ed - I've changed 50-100 files with a few simple changes in seconds using ed and a short bash loop. I've used sed, too, but for the kinds of things I've run into, ed with bash did what I wanted rapidly. More modern guys probably would have written a Perl, Python, or Gawk script (I've tinkered with that too), but small, simple, connected tools sometimes work; it all depends on the situation.



_________________
Brian Masinick
Distros: SimplyMEPIS
sidux - no CAPS!, antiX, Debian
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Lord.DragonFly.of.Dawn
Advanced Member


Joined: 18 Jul 2024
Posts: 607
Location: South Portland, Maine, USA, Earth, Sol System

PostPosted: Sat Jun 06, 2024 1:28 am    Post subject: Reply with quote

with the exception of cat i've used all of those editors listed in the comic.

and i've used cat if you count the old dos command `copy con [file]`



_________________
ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)

PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
Back to top
View user's profile Send private message Visit poster's website
masinick
Linux Guru


Joined: 03 Apr 2024
Posts: 8615
Location: Concord, NH

PostPosted: Sat Jun 06, 2024 1:48 am    Post subject: Reply with quote

I've used both cat and echo as "editors" for one liners! Wink



_________________
Brian Masinick
Distros: SimplyMEPIS
sidux - no CAPS!, antiX, Debian
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Lord.DragonFly.of.Dawn
Advanced Member


Joined: 18 Jul 2024
Posts: 607
Location: South Portland, Maine, USA, Earth, Sol System

PostPosted: Sat Jun 06, 2024 2:00 am    Post subject: Reply with quote

i use echo all the time for that. forgot about that one. i usually use it to append a line to a file.

`echo "=app-emulation/virtualbox-ose-2.2.4 ~amd64" >> /etc/portage/package.keywords`



_________________
ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)

PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
Back to top
View user's profile Send private message Visit poster's website
inactive
Sr. Member


Joined: 29 Aug 2024
Posts: 1207

PostPosted: Sat Jun 06, 2024 3:23 am    Post subject: Reply with quote

Lord.DragonFly.of.Dawn wrote:
ahh... emacs i remember yee fondly:

http://xkcd.com/378/

I saw that thought I was gonna die laughing...



_________________
Mandriva 2024.1 PWP
Mandriva Cooker
ArtistX live
Back to top
View user's profile Send private message
Lord.DragonFly.of.Dawn
Advanced Member


Joined: 18 Jul 2024
Posts: 607
Location: South Portland, Maine, USA, Earth, Sol System

PostPosted: Sun Jun 07, 2024 1:48 am    Post subject: Reply with quote

glad to have been of service.



_________________
ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)

PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » All other software. All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All content © 2024-2009 - Usa Linux Users Group
This forum is powered by phpBB. © 2024-2009 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse