Skip to content

Instantly share code, notes, and snippets.

@trev-dev
Last active Aug 1, 2021
Embed
What would you like to do?
Why goddamn it
(setq-default tab-width 2)
(use-package evil
:ensure t
:init
(setq evil-want-keybinding nil)
(setq evil-shift-width tab-width)
(evil-mode 1))
(defun fucking-web-mode()
"Web-mode doesn't respect emac's own settings as a fucking default"
(setq web-mode-markup-indent-offset tab-width)
(setq web-mode-css-indent-offset tab-width)
(setq web-mode-code-indent-offset tab-width)
(setq web-mode-style-padding tab-width)
(setq web-mode-script-padding tab-width))
(use-package web-mode
:ensure t
:mode
("\\.html\\'" . web-mode)
("\\[^js].liquid\\'" . web-mode)
("\\[^s?css].liquid\\'" . web-mode)
("\\.svelte\\'" . web-mode)
:hook
(web-mode . fucking-web-mode))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment