Org html: add scss save hook, make css and reload

This commit is contained in:
TEC 2021-01-09 01:15:03 +08:00
parent fa3aff5b3d
commit 8e512c703b
Signed by: tec
GPG Key ID: 779591AFDB81F06C
2 changed files with 7 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
.*
!.dir-locals.el
_minted-config
abbrev.el
config.*

View File

@ -0,0 +1,6 @@
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")
((scss-mode . ((after-save-hook . (lambda ()
(shell-command-to-string "sassc main.scss main.css")
(org-html-reload-fancy-style))))))