0

In order to perform some debugging, I'd like to enable multiple (say n) modes: mode-1, mode-2, ..., mode-n. This can be done thanks to a C-x C-e at the end of each of the following lines:

(mode-1 t)
(mode-2 t)
...
(mode-n t)

but this is a pain if n is large (more than 50). Is it possible to achieve the same result in one shot?

| improve this question | | | | |
1

you can use progn to wrap an elisp body (multiple statements):

(progn
  (mode-1 t)
  (mode-2 t)
  ;; ...
  (mode-n t)
)

Evaluate using C-x C-e on last parentheses.

| improve this answer | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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