diff options
author | Case Duckworth | 2020-10-07 19:23:14 -0500 |
---|---|---|
committer | Case Duckworth | 2020-10-07 19:23:14 -0500 |
commit | be1a6b69eadc6160769ecd0ad596e4eb7e346bd8 (patch) | |
tree | ac060b2a858dc6bf88649bf2a7c1873f91e960da | |
parent | Reorganize (diff) | |
download | emacs-be1a6b69eadc6160769ecd0ad596e4eb7e346bd8.tar.gz emacs-be1a6b69eadc6160769ecd0ad596e4eb7e346bd8.zip |
Add languages
-rw-r--r-- | init.el | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/init.el b/init.el index f5a9bbd..d3d6dd4 100644 --- a/init.el +++ b/init.el | |||
@@ -745,6 +745,41 @@ | |||
745 | (inferior-lisp-program (cond ((executable-find "sbcl") | 745 | (inferior-lisp-program (cond ((executable-find "sbcl") |
746 | (executable-find "sbcl"))))) | 746 | (executable-find "sbcl"))))) |
747 | 747 | ||
748 | ;;;; Lua | ||
749 | (use-package lua-mode | ||
750 | :mode "\\.lua$" | ||
751 | :interpreter "lua") | ||
752 | |||
753 | ;;;; Fennel | ||
754 | (use-package fennel-mode | ||
755 | :mode "\\.fnl\\'") | ||
756 | |||
757 | ;;;; Web-mode | ||
758 | (use-package web-mode | ||
759 | :custom | ||
760 | (web-mode-markup-indent-offset 2) | ||
761 | (web-mode-code-indent-offset 2) | ||
762 | (web-mode-css-indent-offset 2) | ||
763 | :mode (("\\.ts\\'" . web-mode) | ||
764 | ("\\.html?\\'" . web-mode) | ||
765 | ("\\.css?\\'" . web-mode) | ||
766 | ("\\.js\\'" . web-mode)) | ||
767 | :hook | ||
768 | (web-mode-hook | ||
769 | . (lambda () | ||
770 | (set (make-local-variable 'company-backends | ||
771 | '(company-css company-web-html company-files)))))) | ||
772 | |||
773 | (use-package emmet-mode | ||
774 | :hook | ||
775 | (web-mode-hook . emmet-mode) | ||
776 | (web-mode-before-auto-complete-hooks | ||
777 | . (lambda () | ||
778 | (let ((web-mode-cur-language | ||
779 | (web-mode-language-at-pos))) | ||
780 | (if (string= web-mode-cur-language "css") | ||
781 | (setq emmet-use-css-transform t) | ||
782 | (setq emmet-use-css-transform nil)))))) | ||
748 | 783 | ||
749 | (provide 'init) | 784 | (provide 'init) |
750 | ;;; init.el ends here | 785 | ;;; init.el ends here |