Sunday, October 11, 2009

Emacs Commands

here are a bunch of commands that i frequently use in Emacs.

1. cut : space to select and then cntl+w
2. copy: space and alt + w
3. paste: cntl + y
4. begining of line : cntl + a
5. end of line : cntl + e
6. split screen : cntl+x 3
7. increase screen size : cntl+x cntl+{
8. if u wana execute a command "n" times
alt+ N and then the command
9. switch between buffer cntl+x and B
10. switch a read only buffer cntl+x cntl+q
11. switch betwen frames cntl+x O



and how do I browse my c/c++ code in emacs I use etags.
but creating etags can be such a pain sometimes. it doesnt have a -R (recursive) option
and we have to provide each input file to create a tag file. this is how i do it.

i use a find command to find all the cpp and hpp files that i need and pipe it to etags and ask it to append it to an existing tag file.

find . -name "*.cpp" -o -name "*.hpp" | etags -o TagFile -

note the - at the end of the command.


more to come but if you have some interesting trick do comment me.

2 comments:

Anonymous said...

Nice dispatch and this mail helped me alot in my college assignement. Thank you as your information.

the blogger formerly known as sansmerci said...

Heyi.. am bak in blogosphere!! rem my review blog chennaifoodreviews.blogspot.com :)

btw, now i write on this site which gives out perfumes sunglasses and lot of stuff like that i even got some food vouchers in chennai for each and every one of my review :D tght will let my blog buddies know check this out

http://www.spiritzandmore.com/outlet-reviewsHeyi.. am bak in blogosphere!! rem my review blog chennaifoodreviews.blogspot.com :)

btw, now i write on this site which gives out perfumes sunglasses and lot of stuff like that i even got some food vouchers in chennai for each and every one of my review :D tght will let my blog buddies know check this out

http://www.spiritzandmore.com/outlet-reviews