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

View File

@ -1,5 +1,5 @@
;;; init.el --- tastytea's Emacs init file. ;;; 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: ;;; 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,7 +130,6 @@
(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.
@ -788,7 +787,9 @@ With argument, do this that many times."
:mode :mode
("\\.p?html?\\'" . web-mode) ("\\.p?html?\\'" . web-mode)
("\\.tmpl\\'" . web-mode) ; Gitea templates ("\\.tmpl\\'" . web-mode) ; Gitea templates
("\\.php\\'" . web-mode)) ("\\.php\\'" . web-mode)
:hook
(web-mode . my/set-fill-column-120))
;;;;;;;;;;;;;;;;;;;; Other file formats ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;; Other file formats ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(use-package adoc-mode (use-package adoc-mode