Moved fill-column hook for web-mode.

This commit is contained in:
tastytea 2019-04-30 13:50:29 +02:00
parent d7948b44d5
commit 8f8884af91
1 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,5 @@
;;; init.el --- tastytea's Emacs init file.
;; Time-stamp: <2019-04-30T11:35:32+00:00>
;; Time-stamp: <2019-04-30T11:50:11+00:00>
;;; Commentary:
;; I am using this file with Emacs 26, but most of it will probably work with
@ -130,7 +130,6 @@
(prog-mode . my/set-fill-column-80)
(conf-mode . my/set-fill-column-80)
(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.
;; Save cursor position.
@ -788,7 +787,9 @@ With argument, do this that many times."
:mode
("\\.p?html?\\'" . web-mode)
("\\.tmpl\\'" . web-mode) ; Gitea templates
("\\.php\\'" . web-mode))
("\\.php\\'" . web-mode)
:hook
(web-mode . my/set-fill-column-120))
;;;;;;;;;;;;;;;;;;;; Other file formats ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(use-package adoc-mode