We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14659f6 commit 473a420Copy full SHA for 473a420
lisp/emacs-lisp/smie.el
@@ -123,6 +123,8 @@
123
124
(eval-when-compile (require 'cl-lib))
125
126
+(require 'prog-mode)
127
+
128
(defgroup smie nil
129
"Simple Minded Indentation Engine."
130
:group 'languages)
@@ -1455,7 +1457,7 @@ in order to figure out the indentation of some other (further down) point."
1455
1457
;; Start the file at column 0.
1456
1458
(save-excursion
1459
(forward-comment (- (point)))
- (if (bobp) 0)))
1460
+ (if (bobp) (prog-first-column))))
1461
1462
(defun smie-indent-close ()
1463
;; Align close paren with opening paren.
0 commit comments