Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 6 down vote accepted

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

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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