Emacs: Refactor text/web.el.
This commit is contained in:
parent
68282ed510
commit
738ea43760
|
@ -1,6 +1,6 @@
|
||||||
;;; web.el --- Settings for web stuff. -*- lexical-binding: t; -*-
|
;;; web.el --- Settings for web stuff. -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;; Time-stamp: <2020-03-18T14:58:52+0100>
|
;; Time-stamp: <2020-03-27T18:12:31+0100>
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
|
|
||||||
|
@ -11,37 +11,23 @@
|
||||||
;; Use company auto-completion for (X)HTML.
|
;; Use company auto-completion for (X)HTML.
|
||||||
(use-package company-web
|
(use-package company-web
|
||||||
:after (company)
|
:after (company)
|
||||||
|
:config (add-to-list 'company-backends 'company-web-html))
|
||||||
:config
|
|
||||||
(add-to-list 'company-backends 'company-web-html)
|
|
||||||
)
|
|
||||||
|
|
||||||
(use-package web-mode
|
(use-package web-mode
|
||||||
:custom
|
:custom
|
||||||
(web-mode-markup-indent-offset 2) ; Default indentation level.
|
(web-mode-markup-indent-offset 2) ; Default indentation level.
|
||||||
|
:mode (("\\.[ps]?html?$" . web-mode)
|
||||||
:mode
|
|
||||||
("\\.[ps]?html?$" . web-mode)
|
|
||||||
("\\.tmpl$" . web-mode) ; Gitea templates.
|
("\\.tmpl$" . web-mode) ; Gitea templates.
|
||||||
("\\.php$" . web-mode)
|
("\\.php$" . web-mode))
|
||||||
|
:hook (web-mode . (lambda () (set-fill-column 100))))
|
||||||
:hook
|
|
||||||
(web-mode . (lambda () (set-fill-column 100)))
|
|
||||||
)
|
|
||||||
|
|
||||||
;; Read EPUB ebooks.
|
;; Read EPUB ebooks.
|
||||||
(use-package nov
|
(use-package nov
|
||||||
:custom
|
:custom (nov-text-width fill-column)
|
||||||
(nov-text-width fill-column)
|
:custom-face (variable-pitch ((t (:inherit variable-pitch
|
||||||
|
|
||||||
:custom-face
|
|
||||||
(variable-pitch ((t (:inherit variable-pitch
|
|
||||||
:family "Source Serif Pro"
|
:family "Source Serif Pro"
|
||||||
:height 1.4))))
|
:height 1.4))))
|
||||||
|
:mode ("\\.epub$" . nov-mode))
|
||||||
:mode
|
|
||||||
("\\.epub$" . nov-mode)
|
|
||||||
)
|
|
||||||
|
|
||||||
(provide 'text/web)
|
(provide 'text/web)
|
||||||
;;; web.el ends here
|
;;; web.el ends here
|
||||||
|
|
Loading…
Reference in New Issue
Block a user