title: How to add a hook to only run in a particular mode?
body: <p>I have the following defun</p>
  
  <pre><code>(defun a-test-save-hook()
    "Test of save hook"
    (message "banana")
    )
  </code></pre>
  
  <p>that I use via the following hook</p>
  
  <pre><code>(add-hook 'after-save-hook 'a-test-save-hook)
  </code></pre>
  
  <p>This works as expected. What I would like to do is to limit the hook to particular mode, in this case org-mode. Any ideas as to how I would go about this?</p>
  
  <p>Thanks in advance.</p>