title: Forcing haskell-indent-mode over haskell-indentation-mode in haskell-mode 2.7?
body: <p>I'm an Emacs user with no skills with regards to configuring the editor. After I upgraded from <a href="http://www.haskell.org/haskellwiki/Haskell_mode_for_Emacs">haskell-mode</a> 2.4 to 2.7, I've noticed two changes:</p>
  
  <ul>
  <li>Indentation is <em>different</em> somehow, in a way I don't quite like. I can't quite put my finger on what it is.</li>
  <li>More importantly: If I have cua-mode enabled and highlight a block of text, backspace/delete does <em>not</em> delete the entire block, just the previous/next character from my marker.</li>
  </ul>
  
  <p>I see that haskell-mode 2.7 uses the minor mode haskell-indentation-mode by default, while 2.4's behaviour has been preserved in the form of haskell-indent-mode. If I first turn off the former, and then on the latter, the behaviour I want is restored (i.e. indentation feels like before, and backspace/delete deletes highlighted blocks).</p>
  
  <p>I can't, however, get this to happen automatically whenever I open a file with a .hs suffix. I've tried various things resembling</p>
  
  <pre><code>(remove-hook 'haskell-mode-hook 'turn-on-haskell-indentation-mode)
  (add-hook 'haskell-mode-hook 'turn-on-haskell-indent-mode)
  </code></pre>
  
  <p>and the likes of it, but I either end up with the standard mode or with plain haskell-mode without indent and doc.</p>
  
  <p>Any ideas?</p>
  
  <p><strong>Solution (thanks to nominolo)</strong>:</p>
  
  <pre><code>(remove-hook 'haskell-mode-hook 'turn-on-haskell-indent)
  (remove-hook 'haskell-mode-hook 'turn-on-haskell-indentation)
  (add-hook 'haskell-mode-hook 'my-haskell-mode-hook)
  (defun my-haskell-mode-hook ()
     (haskell-indentation-mode -1) ;; turn off, just to be sure
     (haskell-indent-mode 1)       ;; turn on indent-mode
     )
  </code></pre>