I'm using this mode in emacs for .jade files. The atom editor converts .jade files to .html when saving, I wonder if emacs can do the same thing?
Thanks,
Oliver
Sure, just put this in your .emacs
:
(defun compile-jade ()
(when (eq major-mode 'jade-mode)
(shell-command (format "jade %s" buffer-file-name))))
(add-hook 'after-save-hook 'compile-jade)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.