Compiling C in KDE
John L Fjellstad
john-ubuntu at fjellstad.org
Tue Jul 11 00:09:58 UTC 2006
And before you ask, emacs also let you check the man pages for the
standard functions. Just put your cursor on the function in question,
esc x man
(or just do esc x man, then type in the function in question)
if you run etags on your sources, you can also search for the definition
of your custom functions. Say, run
Now, in emacs, put the cursor on the function in question
emacs will take you to the definition of that function
emacs also makes it easier to program.
Say you want to add a comment in your code
(emacs knows the difference between legal C and C++ comments, so in C
this will create /* */, in C++ //, in shell scripts #)
Emacs also let you create skeletons for your files. So for instance,
when I open a new .c file, everything I usually need are already filled
in for me (comments, name, etc etc).
Check out my dotemacs file at http://www.fjellstad.org/projects/dotemacs
If you backup your .emacs file in your homedirectory and copy this in
place, then try to open a .h file or .c file and see the result. The
file is pretty well documented, so you could, for instance add a new
field for your class name.
(and before people complain, yes, I pretty sure you can do the same in
vim, it's just that I'm more familiar with emacs).
John L. Fjellstad
web: http://www.fjellstad.org/ Quis custodiet ipsos custodes
More information about the kubuntu-users