-2

I would like to have a function that gives me spaces according to a number i multiplied by a factor f. So I end up with returning 6 spaces with (spaces 3 2).

This is to be able to indent some debugging comments in my elisp code when there are splits in the code (e.g. conditionals).

Drew
  • 75,699
  • 9
  • 109
  • 225
Dilna
  • 1,173
  • 3
  • 10

1 Answers1

1

C-u 8 SPC will insert 8 spaces.

Equivalently from lisp:

(self-insert-command 8 ?\s)
NickD
  • 27,023
  • 3
  • 23
  • 42
Trevoke
  • 2,375
  • 21
  • 34