Closed philiparvidsson closed 6 years ago
.hy-file
is a file extension for Hy? Sure I can go add it.
You misinterpreted. I mean files with a .hy filename ending. They don't activate hy-mode automatically anymore. I.e. opening a file named "foo.hy" does not automatically activate hy-mode.
What is your version of Hy and hy-mode? I haven't heard that happening.
hy-mode-20171030.1023
and hy 0.13.0
Do you see hy in both of the emacs variables
auto-mode-alist
interpreter-mode-alist
hy is in neither.
it seems I need to (require 'hy-mode) for it to work. not sure if that was the case before? maybe it was.
The
(add-to-list 'auto-mode-alist '("\\.hy\\'" . hy-mode))
(add-to-list 'interpreter-mode-alist '("hy" . hy-mode))
was unchanged from the original hy-mode, I don't think its behavior would've changed. I'm not sure if the require call is proper to have mandatory or not.
I don't know enough about the Emacs ecosystem to say for sure whether (require 'hy-mode)
should be needed or not and I probably remember incorrectly. If possible to do it without require
ing the module, it would be nice to do so (unless it breaks some kind of convention).
previously, you could open a .hy-file with hy-mode installed and emacs would automatically enable hy-mode. this is no longer the case, and hy-mode needs to be activated manually (or configured in init.el to be enabled automatically for hy-files)