1

I want to add global-semantic-idle-summary-mode in my .emacs file instead of calling everytime it by using M-x. I tried with (setq ...) but it doesn't work. What's the right way?

3

1 Answer 1

4

It is a minor-mode which can be enabled with: (global-semantic-idle-summary-mode 1)

The doc-string states: "Toggle Global Semantic Idle Summary mode. With ARG, turn Global Semantic Idle Summary mode on if ARG is positive, off otherwise. When this minor mode is enabled, 'semantic-idle-summary-mode' is turned on in every Semantic-supported buffer."

In general, a user may test for whether a minor-mode is active by inspecting the variable containing the same -- e.g., M-x describe-variable RET semantic-idle-summary-mode RET Unless the variable has been specifically defined beforehand, it will not exist until the minor-mode has been activated.

1
  • 1
    And describe-variable is bound to C-h v.
    – Drew
    Commented Sep 21, 2016 at 17:43

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.