2019-10-14 17:38:14 +02:00
|
|
|
;;; web.el --- Settings for web stuff. -*- lexical-binding: t; -*-
|
|
|
|
|
2020-02-05 19:35:45 +01:00
|
|
|
;; Time-stamp: <2020-02-05T19:35:38+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
|
2019-12-31 12:58:36 +01:00
|
|
|
:custom
|
|
|
|
(web-mode-markup-indent-offset 2) ; Default indentation level.
|
|
|
|
|
2019-10-14 17:38:14 +02:00
|
|
|
:mode
|
2020-02-05 19:35:45 +01:00
|
|
|
("\\.[ps]?html?$" . web-mode)
|
2019-12-26 08:44:45 +01:00
|
|
|
("\\.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
|
2020-02-05 19:36:04 +01:00
|
|
|
:family "Source Serif Pro"
|
2019-10-14 17:38:14 +02:00
|
|
|
:height 1.4))))
|
|
|
|
|
|
|
|
:mode
|
2019-12-26 08:44:45 +01:00
|
|
|
("\\.epub$" . nov-mode)
|
2019-10-14 17:38:14 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
(provide 'text/web)
|
|
|
|
;;; web.el ends here
|