tastytea
2d576fec10
Inheriting `font-lock-comment-face` in `font-lock-comment-face` would lock up Emacs.
43 lines
831 B
EmacsLisp
43 lines
831 B
EmacsLisp
;;; web.el --- Settings for web stuff. -*- lexical-binding: t; -*-
|
|
|
|
;; Time-stamp: <2019-12-26T07:41:59+00:00>
|
|
|
|
;;; Commentary:
|
|
|
|
;;; Code:
|
|
|
|
;; Use company auto-completion for (X)HTML.
|
|
(use-package company-web
|
|
:after (company)
|
|
|
|
:config
|
|
(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)
|
|
|
|
:hook
|
|
(web-mode . (lambda () (set-fill-column 100)))
|
|
)
|
|
|
|
;; Read EPUB ebooks.
|
|
(use-package nov
|
|
:custom
|
|
(nov-text-width fill-column)
|
|
|
|
:custom-face
|
|
(variable-pitch ((t (:inherit variable-pitch
|
|
:family "Liberation Serif"
|
|
:height 1.4))))
|
|
|
|
:mode
|
|
("\\.epub$" . nov-mode)
|
|
)
|
|
|
|
(provide 'text/web)
|
|
;;; web.el ends here
|