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
> 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
 
Start new topic
Replies
Termina
post Mar 30 2004, 12:52 PM
Post #2


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

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: 17th December 2017 - 02:43 PM