0

I'm trying to apply hooks to ado-mode a mode for working with the propietary software for statirstical analysis stata. However, the following doesn't work. Does anybody know why?

  (use-package ado-mode
     :hook
      (ado-mode  . display-line-numbers-mode)
      (ado-mode  . inactivate-default-input-method))

Using :custom instead of :hook doesn't work either.

4
  • Are you sure that ado-mode actually defines ado-mode-hook? Do C-h v <RET> ado-mode-hook<RET> when the mode is loaded to find out. Commented Mar 20, 2022 at 9:50
  • You have the wrong format after hook, please fix it first Commented Mar 20, 2022 at 11:17
  • Thank you for the feeback! @Wang, what do you mean by the wrong format? Is it not whatever-mode . foo ??
    – Daniel
    Commented Mar 21, 2022 at 11:19
  • 1
    Does this answer your question? Turn on minor mode rainbow-mode using use-package
    – Drew
    Commented Oct 16, 2022 at 20:20

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.