Emacs tips
For me emacs is about doing less. Doing less is something computer programmers like, because most of the time it's duplication that we're removing and it's always easy to have a editor that helps us with that.
I will make a little list of the features that I think are useful.
just-one-space: removes all but one space from the text. If you have code that looks like:
int i = 0;
Calling just-one-space
when the cursor is on the
whitespace between the =
and the 0
, will
make it int i = 0;
. It removes all but one space.
keyboard macros: If you like to convert some data, but don't want to create a script in Perl or Ruby, you can use keyboard macros.
To start recording a marco use C-x (. Now type some commands. Type C-x ) to stop the recording. With C-x e you can rerun the macro. Macros are really usefull, so I will probably write about keyboard macros some more later.
html-helper-mode: This major mode contains a lot
of nice key combinations for inserting html code. It uses tempo, so
you could take a look at the code for the creating of the
templates. To get syntax highlighting use the html-font
module.
This is all for now. Maybe someone knows some nice stuff or links to good tips or useful modules. Please share!
0 Comments:
Post a Comment
<< Home