Skip to content

Commit

Permalink
Fix indentation to always be two spaces with <>
Browse files Browse the repository at this point in the history
  • Loading branch information
jmorag committed Sep 23, 2020
1 parent ea8dde5 commit 3ef6198
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kakoune-utils.el
Expand Up @@ -177,21 +177,21 @@ but I like this behavior better."
"Indent the region or COUNT lines right to tab stop."
(interactive "p")
(if (use-region-p)
(progn (indent-rigidly-right-to-tab-stop (region-beginning) (region-end))
(progn (indent-rigidly (region-beginning) (region-end) 2)
(setq deactivate-mark nil))
(let ((beg (save-excursion (beginning-of-line) (point)))
(end (save-excursion (forward-line count) (point))))
(indent-rigidly-right-to-tab-stop beg end))))
(indent-rigidly beg end 2))))

(defun kakoune-indent-left (count)
"Indent the region or COUNT lines left to tab stop."
(interactive "p")
(if (use-region-p)
(progn (indent-rigidly-left-to-tab-stop (region-beginning) (region-end))
(progn (indent-rigidly (region-beginning) (region-end) -2)
(setq deactivate-mark nil))
(let ((beg (save-excursion (beginning-of-line) (point)))
(end (save-excursion (forward-line count) (point))))
(indent-rigidly-left-to-tab-stop beg end))))
(indent-rigidly beg end -2))))

(defun kakoune-gg (count)
"Go to the beginning of the buffer or the COUNTth line."
Expand Down

0 comments on commit 3ef6198

Please sign in to comment.