commit 27b5fcddf481eb558339d6ad522eb43dca069319 from: Omar Polo date: Fri Aug 06 11:11:34 2021 UTC small tweaks commit - 4315b20a4c3eb1d98f83ff0626e39fa58e1f6913 commit + 27b5fcddf481eb558339d6ad522eb43dca069319 blob - 833b2ea545e67d612d69bc8ba2edcefad1189f2b blob + 4e89e6d3d487e16c811858255ff7677918d90f7d --- contrib/9ps-mode.el +++ contrib/9ps-mode.el @@ -68,14 +68,12 @@ (back-to-indentation) (setq indent (car (syntax-ppss)) boi-p (= point (point))) - ;; don't indent empty lines, but only when they don't have the - ;; cursor in it. + ;; don't indent empty lines if they don't have the in it (when (and (eq (char-after) ?\n) (not boi-p)) (setq indent 0)) ;; check whether we want to move to the end of line - (when (and (eq (char-after) ?\n) - boi-p) + (when boi-p (setq move-eol-p t)) ;; decrement the indent if the first character on the line is a ;; closer.