Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Power Of Emacs...., learn emacs....
Hemant
post Dec 18 2003, 01:12 AM
Post #1


RMS is my Hero
******

Group: Support Specialist
Posts: 782
Joined: 6-October 02
From: Trichy,INDIA
Member No.: 29



Hi..All..
I am writing this coz..i believe GNU/Linux is meaningless without emacs...
1.To start emacs:-
from command prompt
$ emacs &
2.Initial concepts-
when emacs is started you can see...it has two frames..
1.main Window:where you do your typing etc...
2.message area(small area at bottom):where commands issued by you or messages by emacs are displayed....
2.Initial commands:-

ctrl-x,ctrl-f To start a new file or open an existing file:
when you press this command..you can see you can type name of file you want open in message area...now press enter to open file..
Now you can start typing...
ctrl-x,ctrl-s
To save a file...so once you have finished typing ..you can use this command to save the file...
ctrl-x,ctrl-c
To quit emacs...if you have some files open and they are not saved..then emacs will prompt you to save the file...just keep an eye on message area.
ctrl-aorhome
to go the beginning of a line
ctrl-e or end
to go to end of line
ctrl-home
to go to beginning of buffer(every file..you open with emacs..is opened using a buffer..the file will be written to hrd disk if you press
ctrl-x,ctrl-s)
ctrl-end
to go to end of buffer
alt-x-shell
to start a shell with in emacs...syntax highlighting and clear screen is not supported..can't browse man and info pages from this shell window..
alt-x-ansi-term
supports clear screen,and you can start vi and even you can browse man and info pages....to get color highlighting..type
following command at the prompt...
screen

alt-x-man
to browse man pages..
alt-x-info
to browse info pages...
alt-x-mpg123
to listen to mp3 songs....you will need mpg123.el for that..checkout my other post...
alt-x-w3m
to browse web pages...supports images...even....
alt-x-speenbar
to work with files and directories...
alt-x-compile
to compile a file...the dafault command is make -k..but you can change that...
alt-x-gdb
to debug a file...
ctrl-x,b
to switch betweeb buffers
ctrl-x,ctrl-b
to list all buffers
ctrl-/ or ctrl-x,u
to undo
3.my .emacs file...
.emacs is basically the file that configures...emacs...it should be in you home directory..
i am writing this post from a window machine..so i don't have exact contents now..but i think it goes something like this...
;;so set background color to black
(set-background-color "black")
;;to set foreground color to lemon chiffon
(set-foreground-color "lemon chiffon")
;;to set cursor color
(set-cursor-color "plum")
;;to disable menu bar
(menu-bar-mode nil)
;;to disable tool bar
(tool-bar-mode nil)
;;to enable font lock
(global-font-lock-mode t)
;;to set font
(set-frame-font "-**fixedsysttf*****17*******")

4.The power
So you may ask where...is the power of emacs..then i answer...
the power of emacs lies..
o.in easy configuration..
o.support for many programming languages...
o.you need not to have several emacs windows..you can switch between them..
o.you can check mails,listen to songs,work with shell simultaneously in a single emacs...window...
o.emacspeak...
o.And many other things..i don't know...i guess i discover a new thing in emacs each day...it's amazing...isn't it???
o.people compare Vi and Emacs...but i guess...emacs is far more superior...(A true Program(ATP))
5.command conventions:
when i say..ctrl-x,ctrl-f: it means press x and f,while you keep ctrl key pressed.
when i say:ctrl-x,u:it means press x while you keep ctrl key pressed and now leave ctrl key and press u...
alt-x-info:meand press x while you keep alt key pressed...and now type info
ctrl-home:here home means home key on your keyboard
sounds a bit tough but it is really powerful....once you get used to it..

PS:i am writing a small emacs tutorial..and will post soon...watch out..
and believe me..it is not at all tough...


--------------------
Hemant Kumar
user posted image
hemant@linuxhelp.net
Go to the top of the page
 
+Quote Post
Joey
post Dec 18 2003, 07:20 PM
Post #2


LinuxHelp Admin
*******

Group: Admin
Posts: 1,096
Joined: 18-September 02
Member No.: 1



Hi,

When you are done the tutorial please email it to me at joey@linuxhelp.ca and I'll gladly post it in our Guides Page. smile.gif
Go to the top of the page
 
+Quote Post
Termina
post Mar 29 2004, 03:39 PM
Post #3


RMS is my Hero
******

Group: Support Specialist
Posts: 862
Joined: 18-February 04
From: Wisconsin
Member No.: 2,404



I think everyone will agree with me when I say:

Vi pwns emacs.

*insert cartoon with a depiction of vi beating emacs with a baseball bat*

Anyone who doesn't agree with me is clearly insane. *nods sagely*


--------------------
*Points finger at the author above him* They're a witch! Burn them!
---
Vist my website!
Join me in IRC! Server: st0rage.org Channel: #UnhandledExceptions
Go to the top of the page
 
+Quote Post
hughesjr
post Mar 29 2004, 07:47 PM
Post #4


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



Strictly as an editor, I like vi as well (it is all I ever use ... I even installed it on my windows workstation).

The difference is that emacs is more than merely an editor ... (see this)

Here is what the latest release notes say:
QUOTE
Emacs version 21 supports variable width and height fonts, playing sounds and the inclusion of images in a document, as well as tool bars, plus nicer menus and scroll bars.


So, what vi does (actually I like vim), it does very well ... and I don't need to use emacs, because I use vim for all my editing needs ... BUT, I conceed that emacs is probably more flexible.


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
Jim
post Mar 30 2004, 01:02 AM
Post #5


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,280
Joined: 19-November 03
From: University of Minnesota- TC
Member No.: 1,828



Maybe I just don't have a clue how to use vi right, wich is probably true, but I think that emacs blows vi out of the water even as just a basic code editor.

The simple fact that when I am writing code in emacs it colorizes all my key words so I can easly look and see "ok, thats a method, thats a constant, thats a comment..." is totally invaluable to me. Now someone is going to come back and say vi can do that to, and than I conceed my point, but when I started my first CSci class the prof said spend a day or two in both emacs and vi than pick one and never look back. I tried both, and man, emacs was better out of the gate than vi ever was to me.

In conclusion, I am an emacs man and proud of it.


--------------------
--Jim Lester
jim@linuxhelp.net

Distro: Gentoo
System: AMD Athlon 3000+ XP 2.166 GHz
NVIDIA nForce2 IGP Chipset
1GB 333 MHz DDR SDRAM
NVIDIA nForce2 Dual Head 64 MB Graphics

Server Distro: CentOS
Go to the top of the page
 
+Quote Post
Hemant
post Mar 30 2004, 06:57 AM
Post #6


RMS is my Hero
******

Group: Support Specialist
Posts: 782
Joined: 6-October 02
From: Trichy,INDIA
Member No.: 29



What happened to the tutorial i send to you joey...I think the tutorial was not well formatted...but in the mean while i have written a more detailed tutorial....in HTML format....


--------------------
Hemant Kumar
user posted image
hemant@linuxhelp.net
Go to the top of the page
 
+Quote Post
hughesjr
post Mar 30 2004, 07:23 AM
Post #7


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



vim colorizes code during programing as well .. it has very powerful search and replace features ... and many other features.

I actually agree with your CSci class prof though ... try them both, learn one in depth, and stick with it.

I have 20 years invested in learning vi .... I have only dabled in emacs ... so I can do much more in vim than I can do in emacs.

emacs can probably do all the things I do in vim ... but not for me, at least not without much training smile.gif

I have actually seen many flamewars concerning vim and emacs ... with things like:

well, emacs can do xxxxx, try that with vim .... and counters from the vim folks saying the same stuff.

I will just say that both are very capable and can do most programing features needed ... find the one you are most comfortable with and use it ....

subliminal suggestion ... vim is better ... vim is better ... vim is better ... vim is better ... vim is better ... vim is better ... vim is better ...


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
Termina
post Mar 30 2004, 12:52 PM
Post #8


RMS is my Hero
******

Group: Support Specialist
Posts: 862
Joined: 18-February 04
From: Wisconsin
Member No.: 2,404



So... we can't have a flame war? *hangs head in shame*

Eh, I just like VI because it's command line based, it's powerful, and it has a great feel to it (You can look around without accidently editing anything, and then when you're ready, it's just one key press to get everything going happy.gif)

I also love the easy find (and not quite as each find/replace) features.

Very useful when going through your apache conf file. *laughs*


--------------------
*Points finger at the author above him* They're a witch! Burn them!
---
Vist my website!
Join me in IRC! Server: st0rage.org Channel: #UnhandledExceptions
Go to the top of the page
 
+Quote Post
Robert83
post Mar 30 2004, 01:01 PM
Post #9


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



and I love MC smile.gif

Sincerely
Robert B


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
Jim
post Mar 30 2004, 01:10 PM
Post #10


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,280
Joined: 19-November 03
From: University of Minnesota- TC
Member No.: 1,828



Man, flamewars are fun, answering tech questions is good to, but this is what I really like, a good gentlemenly argument between men about silly things like which editor is better. This is what comunity is all about, and isn't that what we are going for here, comunity?

However, it does apear the comunity will have to be segrigated. You vi users will have to go live on one side and us emacs users will keep the better side for ourselfs. As for the others who use non-vi/emacs editors we should burn thier huts and send them packing.

Ok, maybe no hut burning, and your probably right, we shouldn't let something like this divide us. But that doesn't mean we can't have fun bickering about it. Besides, I am going to go give vi another look now and maybe re-evaluate its status in my book. Not to mention that the custom knoppix build I am falling in love with didn't include emacs. *shakes fist in anger* So I am learning and thats good.

emacs emacs emacs emacs emacs emacs emacs emacs emacs emacs


--------------------
--Jim Lester
jim@linuxhelp.net

Distro: Gentoo
System: AMD Athlon 3000+ XP 2.166 GHz
NVIDIA nForce2 IGP Chipset
1GB 333 MHz DDR SDRAM
NVIDIA nForce2 Dual Head 64 MB Graphics

Server Distro: CentOS
Go to the top of the page
 
+Quote Post
Robert83
post Mar 30 2004, 01:24 PM
Post #11


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



biggrin.gif biggrin.gif biggrin.gif biggrin.gif


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
Termina
post Mar 30 2004, 01:56 PM
Post #12


RMS is my Hero
******

Group: Support Specialist
Posts: 862
Joined: 18-February 04
From: Wisconsin
Member No.: 2,404



*hides a torch behind his back*

I think I can finally end this argument, for I have uncovered shocking and relevent information!

Vi(m): Cures cancer, stops comets from hitting earth, heals the sick

Emacs: Cause of the Ebloa virus, eats kittens


Source: http://www.encyclopedia.com
http://nasa.gov
http://fbi.gov
http://www.bcbs.com


--------------------
*Points finger at the author above him* They're a witch! Burn them!
---
Vist my website!
Join me in IRC! Server: st0rage.org Channel: #UnhandledExceptions
Go to the top of the page
 
+Quote Post
Robert83
post Mar 30 2004, 03:31 PM
Post #13


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



MC has 1200/1200 Health Points
4800/4800 Magic Points
and can summon Ifrit,Shiva,and the rest of the Guardian Forces.
and has a secret backup Battleaxe which has 2000 Fire Damage, and 1200 Ice Damage.


Sincerely
Robert B


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
Hemant
post Apr 7 2004, 08:14 AM
Post #14


RMS is my Hero
******

Group: Support Specialist
Posts: 782
Joined: 6-October 02
From: Trichy,INDIA
Member No.: 29



biggrin.gif biggrin.gif biggrin.gif
Emacs guide is up..
Checkout this link...
http://www.linuxhelp.ca/guides/emacs


--------------------
Hemant Kumar
user posted image
hemant@linuxhelp.net
Go to the top of the page
 
+Quote Post
VBD
post Jun 30 2004, 12:31 PM
Post #15


Whats this Lie-nix Thing?
*

Group: Members
Posts: 24
Joined: 27-June 04
Member No.: 3,244



QUOTE (Termina @ Mar 30 2004, 01:56 PM)
*hides a torch behind his back*

I think I can finally end this argument, for I have uncovered shocking and relevent information!

Vi(m): Cures cancer, stops comets from hitting earth, heals the sick

Emacs: Cause of the Ebloa virus, eats kittens


Source: http://www.encyclopedia.com
          http://nasa.gov
          http://fbi.gov
          http://www.bcbs.com

Come on, Vi(m) and EMacs are just lame. Nano kicks ear!
Nano: Kills microsoft biggrin.gif
Go to the top of the page
 
+Quote Post
Corey
post Jul 1 2004, 06:46 PM
Post #16


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 1,254
Joined: 21-September 02
From: St John's, Newfoundland, Canada
Member No.: 3



all hail nano!!

all your text editors are belong to us!


--------------------
Corey Quilliam
(former) Linuxhelp.ca Administrator
cquilliam-AT-gmail-dot-com

Want to help out Linuxhelp.net? Check out our Linuxhelp Wiki and see if there are some articles you would like to submit!!

--
Ubuntu 8.04 64-bit - Work Laptop (HP-Compaq NC6400 Core2)
Kubuntu 8.04 64-bit - Desktop (HP m8120n QuadCore)
Ubuntu 6.04 - Server (I'm not upgrading this baby until support runs out in 2012) (Some old POS dell)
Go to the top of the page
 
+Quote Post
Hemant
post Jul 2 2004, 06:32 AM
Post #17


RMS is my Hero
******

Group: Support Specialist
Posts: 782
Joined: 6-October 02
From: Trichy,INDIA
Member No.: 29



Nano sucks... biggrin.gif


--------------------
Hemant Kumar
user posted image
hemant@linuxhelp.net
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd November 2017 - 04:29 AM