mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
19 lines
516 B
EmacsLisp
19 lines
516 B
EmacsLisp
(add-to-list 'auto-mode-alist '("\\.coffee$" . coffee-mode))
|
|
(add-to-list 'auto-mode-alist '("Cakefile" . coffee-mode))
|
|
|
|
(defun customizations-for-coffee-mode ()
|
|
(interactive)
|
|
(flyspell-prog-mode)
|
|
(flymake-coffee-load)
|
|
(linum-mode t)
|
|
(fci-mode)
|
|
(auto-complete-mode)
|
|
(whitespace-mode)
|
|
(subword-mode)
|
|
(setq tab-width 2)
|
|
(setq highlight-indentation-offset 2)
|
|
(highlight-indentation-mode)
|
|
(highlight-indentation-current-column-mode))
|
|
|
|
(add-hook 'coffee-mode-hook 'customizations-for-coffee-mode)
|