Open RX14 opened 6 years ago
You check the value of the before-save-hook variable. Maybe you can find out what's wrong. @RX14
Looks like it's not there...
Worked around it by adding
(add-hook 'before-save-hook (lambda () (when (eq major-mode 'crystal-mode) (crystal-tool-format))))
to my user-config
I think it is better using
(add-hook 'crystal-mode-hook '(lambda () (add-hook 'before-save-hook 'crystal-tool-format)))
@Compro-Prasad @RX14 This layer has been included in the develop branch of spacemacs. Directly using the crystal's layer in the spacemacs is probably a better choice. This project won't be maintained anymore. https://github.com/syl20bnr/spacemacs/tree/develop/layers/%2Blang/crystal
Oh, that's cool! Didn't know.
spacemacs-crystal-layer master, spacemacs
0.200.13
, and emacs25.3.1
, u f
andM-x crystal-tool-format
work, but are no longer executed on save.