]> code.delx.au - gnu-emacs-elpa/commitdiff
Remove out-of-date information on configuring tab width, and an overcomplicated use...
authorReuben Thomas <rrt@sc3d.org>
Sat, 12 May 2012 20:06:53 +0000 (21:06 +0100)
committerReuben Thomas <rrt@sc3d.org>
Sat, 12 May 2012 20:06:53 +0000 (21:06 +0100)
README.md

index f56882a900010364e7122f46d7d3cdbe05e75d6e..07547f6f1b25f6130b79344bff0badd55118bda4 100644 (file)
--- a/README.md
+++ b/README.md
@@ -28,26 +28,6 @@ If `coffee-mode` is not enabled automatically for any files ending in
 
 ## Indentation
 
-### Configuring
-
-Lines are indented according to the `tab-width` variable. If you're
-like me, you probably have this set in your Emacs config globally:
-
-    (setq-default tab-width 4)
-
-Well, idiomatic CoffeeScript uses two spaces. We can set our
-`tab-width` to two for `coffee-mode` using the `coffee-mode-hook`:
-
-    (defun coffee-custom ()
-      "coffee-mode-hook"
-     (set (make-local-variable 'tab-width) 2))
-
-    (add-hook 'coffee-mode-hook
-      '(lambda() (coffee-custom)))
-
-For more configuration options and another example of this hook, look
-further down in this README.
-
 ### TAB Theory
 
 It goes like this: when you press `TAB`, we indent the line unless
@@ -194,13 +174,6 @@ compile-on-save minor mode in `coffee-mode`.  To enable it by default:
 
     (add-hook 'coffee-mode-hook '(lambda () (coffee-cos-mode t)))
 
-To enable it only if it looks like you may want to:
-
-    (add-hook 'coffee-mode-hook '(lambda ()
-                                   (and (file-exists-p (buffer-file-name))
-                                        (file-exists-p (coffee-compiled-file-name))
-                                        (coffee-cos-mode t))))
-
 ### coffee-repl
 
 Starts a repl in a new buffer using `coffee-command`.