branch: elpa/nasm-mode commit 8ce1831316cad68b617c087d3792407d2742c4c9 Author: Charlie Green <geek0...@gmail.com> Commit: Christopher Wellons <well...@nullprogram.com>
Use nasm-basic-offset instead of a literal 8 --- nasm-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nasm-mode.el b/nasm-mode.el index 9753218..9191e89 100644 --- a/nasm-mode.el +++ b/nasm-mode.el @@ -699,10 +699,10 @@ With a prefix arg, kill the comment on the current line with (join-line join-following-p) (if (looking-back nasm-label-regexp (line-beginning-position)) (let ((column (current-column))) - (cond ((< column 8) + (cond ((< column nasm-basic-offset) (delete-char 1) (insert-char ?\t)) - ((and (= column 8) (eql ?: (char-before))) + ((and (= column nasm-basic-offset) (eql ?: (char-before))) (delete-char 1)))) (nasm-indent-line)))