Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I define in Emacs a new major-mode which is just modified older one. For example I want to keep intact LaTeX-mode but create new one (i.e LaTeX2-mode) which is a bit modified LaTeX mode (with different key bindings, font-lock, and and toolbar). However the changes made in LaTeX-mode should be also applied to LaTeX2-mode.

share|improve this question
3  
usually you don't define a new mode for that. just add the extra definitions into the mode's hook to be executed on entering the mode. – David Carlisle Nov 18 '12 at 14:12

migrated from tex.stackexchange.com Nov 19 '12 at 8:31

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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