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.


Sign Up Now
> Power Of Emacs...., learn emacs....
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

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 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 can see you can type name of file you want open in message press enter to open file..
Now you can start typing...
To save a once you have finished typing can use this command to save the file...
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.
to go the beginning of a line
ctrl-e or end
to go to end of line
to go to beginning of buffer(every open with opened using a buffer..the file will be written to hrd disk if you press
to go to end of buffer
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..
supports clear screen,and you can start vi and even you can browse man and info get color highlighting..type
following command at the prompt...

to browse man pages..
to browse info pages...
to listen to mp3 will need mpg123.el for that..checkout my other post...
to browse web pages...supports images...even....
to work with files and directories...
to compile a file...the dafault command is make -k..but you can change that...
to debug a file...
to switch betweeb buffers
to list all buffers
ctrl-/ or ctrl-x,u
to undo .emacs file...
.emacs is basically the file that should be in you home directory..
i am writing this post from a window 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 the power of emacs..then i answer...
the power of emacs lies.. easy configuration.. for many programming languages... need not to have several emacs can switch between them.. can check mails,listen to songs,work with shell simultaneously in a single emacs...window...
o.And many other things..i don't know...i guess i discover a new thing in emacs each'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 out..
and believe is not at all tough...

Hemant Kumar
user posted image
Go to the top of the page
+Quote Post
Start new topic
post Mar 30 2004, 07:23 AM
Post #2

Its GNU/

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
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

Posts in this topic

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 March 2018 - 10:21 PM