summaryrefslogtreecommitdiff
path: root/settings/setup-web-mode.el
diff options
context:
space:
mode:
authorbenj <benj@rse8.com>2023-11-25 10:02:42 -0800
committerbenj <benj@rse8.com>2023-11-25 10:02:42 -0800
commit4cfa8246ea7eec4139ba6c34d3fb3a4545956824 (patch)
tree450ba709847d3740eef79753c428095bdb08fe62 /settings/setup-web-mode.el
parent4f78ee33bfc828707a79cd79d296bf4a9c25b5b9 (diff)
downloademacs-4cfa8246ea7eec4139ba6c34d3fb3a4545956824.tar
emacs-4cfa8246ea7eec4139ba6c34d3fb3a4545956824.tar.gz
emacs-4cfa8246ea7eec4139ba6c34d3fb3a4545956824.tar.bz2
emacs-4cfa8246ea7eec4139ba6c34d3fb3a4545956824.tar.lz
emacs-4cfa8246ea7eec4139ba6c34d3fb3a4545956824.tar.xz
emacs-4cfa8246ea7eec4139ba6c34d3fb3a4545956824.tar.zst
emacs-4cfa8246ea7eec4139ba6c34d3fb3a4545956824.zip
rewrite emacs init.el and go back to basics
This is a complete rewrite leveraging the very popular use-package to see how I like it. We reduce init.el to a bare minimum configuration and remove the previous homebrew organizational scheme. A number of packages have yet to be setup, but we'll wait and do in JIT.
Diffstat (limited to '')
-rw-r--r--settings/setup-web-mode.el44
1 files changed, 0 insertions, 44 deletions
diff --git a/settings/setup-web-mode.el b/settings/setup-web-mode.el
deleted file mode 100644
index 8a4f088..0000000
--- a/settings/setup-web-mode.el
+++ /dev/null
@@ -1,44 +0,0 @@
-(require 'web-mode)
-(require 'typescript-mode)
-
-(add-to-list 'auto-mode-alist '("\\.[agj]sp\\'" . web-mode))
-(add-to-list 'auto-mode-alist '("\\.as[cp]x\\'" . web-mode))
-(add-to-list 'auto-mode-alist '("\\.erb\\'" . web-mode))
-(add-to-list 'auto-mode-alist '("\\.ejs\\'" . web-mode))
-(add-to-list 'auto-mode-alist '("\\.hbs\\'" . web-mode))
-(add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))
-(add-to-list 'auto-mode-alist '("\\.js\\'" . web-mode))
-(add-to-list 'auto-mode-alist '("\\.ts\\'" . typescript-mode))
-(add-to-list 'auto-mode-alist '("\\.tsx\\'" . typescript-mode))
-(add-to-list 'auto-mode-alist '("\\.mustache\\'" . web-mode))
-(add-to-list 'auto-mode-alist '("\\.tpl\\'" . web-mode))
-(add-to-list 'auto-mode-alist '("\\.eex\\'" . web-mode))
-(add-to-list 'auto-mode-alist '("\\.svelte\\'" . web-mode))
-
-
-(set-face-attribute 'web-mode-doctype-face nil :foreground "misty rose")
-(set-face-attribute 'web-mode-html-tag-face nil :foreground "medium slate blue")
-(set-face-attribute 'web-mode-html-attr-name-face nil :foreground "orange")
-(set-face-attribute 'web-mode-html-tag-bracket-face nil :foreground "gray")
-(set-face-attribute 'web-mode-block-control-face nil :foreground "deep sky blue")
-(set-face-attribute 'web-mode-block-delimiter-face nil :foreground "medium aquamarine")
-
-(setq web-mode-engines-alist
- '(("django" . "\\.html\\'")))
-
-(defun indent-offset ()
- "Hooks for web mode."
- (setq web-mode-markup-indent-offset 2)
- (setq web-mode-code-indent-offset 2)
- (setq web-mode-css-indent-offset 2)
- (setq web-mode-style-padding 2)
- (setq web-mode-script-padding 2))
-
-;; (eval-after-load 'web-mode
-;; '(add-hook 'web-mode-hook #'add-node-modules-path))
-
-(add-hook 'web-mode-hook 'indent-offset)
-(add-hook 'web-mode-hook 'prettier-mode)
-;(add-hook 'web-mode-hook 'prettier-js-mode)
-
-(provide 'setup-web-mode)