.emacs.d/init.d/text/web.el

46 lines
910 B
EmacsLisp
Raw Normal View History

2019-10-14 17:38:14 +02:00
;;; web.el --- Settings for web stuff. -*- lexical-binding: t; -*-
;; Time-stamp: <2019-12-31T03:19:03+0100>
2019-10-14 17:38:14 +02: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
:custom
(web-mode-markup-indent-offset 2) ; Default indentation level.
2019-10-14 17:38:14 +02:00
:mode
("\\.p?html?$" . web-mode)
("\\.tmpl$" . web-mode) ; Gitea templates.
("\\.php$" . web-mode)
2019-10-14 17:38:14 +02:00
: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)
2019-10-14 17:38:14 +02:00
)
(provide 'text/web)
;;; web.el ends here