I've used Emacs for all my development for some time now, but only recently did I start developing HTML. I was wondering how I can configure Emacs to auto-complete tags for me. Also, I'd like for Emacs to auto-complete brackets for me in languages like Java and C.

I looked at the customization options, under Programming but there was no option for customizing for HTML or Java. Can someone tell me how I can do this?

link|improve this question

57% accept rate
feedback

1 Answer

up vote 2 down vote accepted

did you try yasnippet for completion? and there is autopair to insert closing brackets.

link|improve this answer
yasnippet worked perfectly! I haven't tried autopair, but thanks for the tips! – efficiencyIsBliss Jun 13 '11 at 20:59
Hey, I was just trying to set up yasnippet on my Mac, but there is no ~/.emacs file. I made a new file with that name, but I get an error when I start emacs. The error is that the file yasnippet-bundle could not be loaded. Do you know a way around this? – efficiencyIsBliss Aug 17 '11 at 2:35
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.