Added web-mode.
This commit is contained in:
parent
133f3fe316
commit
cace85c116
13
init.el
13
init.el
|
@ -1,5 +1,5 @@
|
||||||
;;; init.el --- tastytea's Emacs init file.
|
;;; init.el --- tastytea's Emacs init file.
|
||||||
;; Time-stamp: <2019-04-29T12:45:42+00:00>
|
;; Time-stamp: <2019-04-29T13:22:38+00:00>
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
;; I am using this file with Emacs 26, but most of it will probably work with
|
;; I am using this file with Emacs 26, but most of it will probably work with
|
||||||
|
@ -130,6 +130,7 @@
|
||||||
(prog-mode . my/set-fill-column-80)
|
(prog-mode . my/set-fill-column-80)
|
||||||
(conf-mode . my/set-fill-column-80)
|
(conf-mode . my/set-fill-column-80)
|
||||||
(html-mode . my/set-fill-column-120)
|
(html-mode . my/set-fill-column-120)
|
||||||
|
(web-mode . my/set-fill-column-120)
|
||||||
(text-mode . auto-fill-mode)) ; Enable word-wrapping at fill-column.
|
(text-mode . auto-fill-mode)) ; Enable word-wrapping at fill-column.
|
||||||
|
|
||||||
;; Save cursor position.
|
;; Save cursor position.
|
||||||
|
@ -185,7 +186,9 @@ With argument, do this that many times."
|
||||||
(unless slow-computer
|
(unless slow-computer
|
||||||
(use-package flycheck
|
(use-package flycheck
|
||||||
:config
|
:config
|
||||||
(global-flycheck-mode)))
|
(global-flycheck-mode)
|
||||||
|
(flycheck-add-mode 'html-tidy 'web-mode)
|
||||||
|
(flycheck-add-mode 'css-csslint 'web-mode)))
|
||||||
|
|
||||||
;; Autocompletion mode with many plugins.
|
;; Autocompletion mode with many plugins.
|
||||||
(unless slow-computer
|
(unless slow-computer
|
||||||
|
@ -780,6 +783,12 @@ With argument, do this that many times."
|
||||||
:config
|
:config
|
||||||
(add-to-list 'company-backends 'company-web-html))
|
(add-to-list 'company-backends 'company-web-html))
|
||||||
|
|
||||||
|
(use-package web-mode
|
||||||
|
:mode
|
||||||
|
("\\.p?html?\\'" . web-mode)
|
||||||
|
("\\.tmpl\\'" . web-mode) ; Gitea templates
|
||||||
|
("\\.php\\'" . web-mode))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;; Other file formats ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;; Other file formats ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
(use-package adoc-mode
|
(use-package adoc-mode
|
||||||
:mode
|
:mode
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
127.0.0.1:51313 9260
|
127.0.0.1:51313 19206
|
||||||
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh
|
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh
|
Loading…
Reference in New Issue
Block a user