title: Detect current major mode in Emacs (from Lisp)?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2238418/emacs-lisp-how-to-get-buffer-major-mode">emacs lisp, how to get buffer major mode?</a>  </p>
  </blockquote>
  
  
  
  <p>Is there a way for Emacs Lisp code to determine the current major mode?</p>