Skip to main content
2 of 2
added 4 characters in body
Drew
  • 79.1k
  • 10
  • 123
  • 257

defalias derived mode to parent mode

I wrote a new major mode config-general-mode, which is derived from conf-mode. I like it a lot and want to have it as the default mode for all configuration files. Thus I tried:

(defalias 'conf-mode 'config-general-mode)

But this doesn't work, I get the error message:

Lisp nesting exceeds `max-lisp-eval-depth'

Of course I could (and probably will) just associate *.cfg and *.conf with my mode, but I am curious, if such an alias can be made possible somehow.

Tom
  • 45
  • 5