aboutsummaryrefslogtreecommitdiff
path: root/barb-mode.el
diff options
context:
space:
mode:
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.")