hylang / hy-mode

Hy mode for Emacs
GNU General Public License v3.0
189 stars 48 forks source link

hy-mode no longer activates automatically for .hy-files #62

Closed philiparvidsson closed 6 years ago

philiparvidsson commented 6 years ago

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)

ekaschalk commented 6 years ago

.hy-file is a file extension for Hy? Sure I can go add it.

philiparvidsson commented 6 years ago

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.

ekaschalk commented 6 years ago

What is your version of Hy and hy-mode? I haven't heard that happening.

philiparvidsson commented 6 years ago

hy-mode-20171030.1023 and hy 0.13.0

ekaschalk commented 6 years ago

Do you see hy in both of the emacs variables

auto-mode-alist interpreter-mode-alist

philiparvidsson commented 6 years ago

hy is in neither.

philiparvidsson commented 6 years ago

it seems I need to (require 'hy-mode) for it to work. not sure if that was the case before? maybe it was.

ekaschalk commented 6 years ago

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.

philiparvidsson commented 6 years ago

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 requireing the module, it would be nice to do so (unless it breaks some kind of convention).