summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2015-11-28 23:36:02 +0100
committerAlan Pearce2015-11-28 23:36:02 +0100
commit7459e5ee09bc094fc47c0d03ec031fe2268825b9 (patch)
tree990b493041f3e4281a4cf4178992e6af141778a0
parent9e3298f5a746407b2461159d54be486ad0337864 (diff)
downloadnixfiles-7459e5ee09bc094fc47c0d03ec031fe2268825b9.tar.lz
nixfiles-7459e5ee09bc094fc47c0d03ec031fe2268825b9.tar.zst
nixfiles-7459e5ee09bc094fc47c0d03ec031fe2268825b9.zip
Emacs: Improve coffee-mode configuration
-rw-r--r--tag-emacs/emacs.d/init.org8
1 files changed, 6 insertions, 2 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index eed4b390..c68dd8c6 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -572,6 +572,7 @@ whitespace-sensitive language, of course.
               (add-to-list 'auto-indent-disabled-modes-list 'yaml-mode)
               (add-to-list 'auto-indent-disabled-modes-list 'saltstack-mode)
               (add-to-list 'auto-indent-disabled-modes-list 'nix-mode)
+              (add-to-list 'auto-indent-disabled-modes-list 'coffee-mode)
               (auto-indent-global-mode)))
 #+END_SRC
 
@@ -1884,7 +1885,9 @@ it though
 
 #+BEGIN_SRC emacs-lisp
   (use-package coffee-mode
-    :mode ("\\.coffee\\'" . coffee-mode))
+    :mode ("\\.coffee\\'" . coffee-mode)
+    :config (progn
+              (setq coffee-indent-like-python-mode t)))
 #+END_SRC
 
 *** tern
@@ -2308,7 +2311,8 @@ nice as the real version
                 (sp-local-pair "{{" "}}"))
               (show-smartparens-global-mode t)
               (smartparens-global-strict-mode t)
-              (add-hook 'lisp-mode-common-hook #'turn-off-smartparens-mode)))
+              (add-hook 'lisp-mode-common-hook #'turn-off-smartparens-mode)
+              (add-hook 'coffee-mode-hook #'turn-off-smartparens-mode)))
 #+END_SRC
 
 ** move-text