Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

Another nice mode for emacs for HTML & other web related work is the aptly-named web-mode. You can learn about it here: http://web-mode.org/

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .