Emacs configuration for Clojure on MacOS
This commit is contained in:
22
.emacs.d.clojure/customizations/setup-js.el
Normal file
22
.emacs.d.clojure/customizations/setup-js.el
Normal file
@@ -0,0 +1,22 @@
|
||||
;; javascript / html
|
||||
(add-to-list 'auto-mode-alist '("\\.js$" . js-mode))
|
||||
(add-hook 'js-mode-hook 'subword-mode)
|
||||
(add-hook 'html-mode-hook 'subword-mode)
|
||||
(setq js-indent-level 2)
|
||||
(eval-after-load "sgml-mode"
|
||||
'(progn
|
||||
(require 'tagedit)
|
||||
(tagedit-add-paredit-like-keybindings)
|
||||
(add-hook 'html-mode-hook (lambda () (tagedit-mode 1)))))
|
||||
|
||||
|
||||
;; coffeescript
|
||||
(add-to-list 'auto-mode-alist '("\\.coffee.erb$" . coffee-mode))
|
||||
(add-hook 'coffee-mode-hook 'subword-mode)
|
||||
(add-hook 'coffee-mode-hook 'highlight-indentation-current-column-mode)
|
||||
(add-hook 'coffee-mode-hook
|
||||
(defun coffee-mode-newline-and-indent ()
|
||||
(define-key coffee-mode-map "\C-j" 'coffee-newline-and-indent)
|
||||
(setq coffee-cleanup-whitespace nil)))
|
||||
(custom-set-variables
|
||||
'(coffee-tab-width 2))
|
||||
Reference in New Issue
Block a user