aboutsummaryrefslogtreecommitdiff
path: root/barb-mode.el
diff options
context:
space:
mode:
authorGene Pasquet <dev@etenil.net>2022-11-15 14:45:01 +0000
committerGene Pasquet <dev@etenil.net>2022-11-15 14:45:01 +0000
commitc724844da1f731460f83811378a781991d25f571 (patch)
tree80a68f7cb13c57ea18a73caad4ed0afe6e118953 /barb-mode.el
parent5e9a882c566c2f1bf35dec651f865002e741ab55 (diff)
Improved readme.
Diffstat (limited to 'barb-mode.el')
-rw-r--r--barb-mode.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/barb-mode.el b/barb-mode.el
index a6c8684..aa79110 100644
--- a/barb-mode.el
+++ b/barb-mode.el
@@ -16,11 +16,12 @@
(save-excursion
(back-to-indentation)
(let ((start-point (point)))
- (move-beginning-of-line nil)
- (let* ((line-start (point))
- (indent (floor (/ (- start-point line-start) tab-width))))
- (indent-to (* (1+ indent) tab-width)))))
- (back-to-indentation))
+ (unless (string= (string (char-after start-point)) "#")
+ (move-beginning-of-line nil)
+ (let* ((line-start (point))
+ (indent (floor (/ (- start-point line-start) tab-width))))
+ (indent-to (* (1+ indent) tab-width)))))
+ (back-to-indentation)))
(defvar barb-mode-abbrev-table nil
"Abbreviation table used by `barb-mode' buffers.")