Emacs configuration for Clojure on MacOS

This commit is contained in:
Fabio Scotto di Santolo
2020-09-27 11:11:29 +02:00
parent 4757524cc5
commit 0079f6bbb3
11 changed files with 614 additions and 0 deletions

View 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))