help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Provide numerical argument to indent-rigidly-right


From: Andreas Röhler
Subject: Provide numerical argument to indent-rigidly-right
Date: Thu, 11 Nov 2021 12:17:45 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

Hi,

what about providing a numerical argument to indent-rigidly-right

Like this:

(defun ar-indent-rigidly-right (beg end times)
  "Indent all lines between BEG and END rightward by TIMES space(s)."
  (interactive "r\np")
  (dotimes (i times nil)
    (progn (indent-rigidly
        beg end
        (if (eq (current-bidi-paragraph-direction) 'right-to-left) -1 1)))))

Best,

Andreas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]