0

How can I tell this config to also activate git-auto-commit-mode mode for the js-mode in addition to fundamental-mode

(use-package git-auto-commit-mode
  :hook
  (fundamental-mode . git-auto-commit-mode)
  :custom
  (gac-ask-for-summary-p t))

1 Answer 1

4

According to the manual (section 4.13), the car of the :hook form can be a list. So

(use-package git-auto-commit-mode
  :hook
  ((fundamental-mode js-mode) . git-auto-commit-mode)
  :custom
  (gac-ask-for-summary-p t))

should do the job.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.