Friday, April 25, 2008

Skeletons for Emacs

(define-skeleton skeleton-c++-mode-cout
" Prints out a variable using cout " 
" Print variable : "
"\ncout << \" " str "\" << " str " << endl;\n" )

(global-set-key [?\C-p] 'skeleton-c++-mode-cout)
This code snippet will automatically create a cout line for a variable.

No comments: