modeless alternative to jde-gen-println
toby cabot <[email protected]>
| Newsgroups | gmane.emacs.jdee.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Folks, Thanks for JDEE, I've been using it for a while and it certainly makes life easier for me. I'm far from being an Emacs lisp hacker, but one thing that always bugged me about JDEE was the modal jde-gen-println function, so I took a few elisp baby steps and wrote: (defun tc-gen-println () "insert a line at point with a call to System.out.println." (interactive) (beginning-of-line) (insert "System.out.println();\n") (backward-char 3) (c-indent-command) ) I'll bet that this code is pretty naive (especially the hard-coded 3-character movement), but it works well for me and is far less disruptive to my coding "flow" than the original. Thanks, Toby ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev