about summary refs log tree commit diff stats
path: root/.emacs.d/lisp
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2023-01-17 13:16:46 +0000
committerDavid Morgan <djm_uk@protonmail.com>2023-01-17 13:16:46 +0000
commit2ba485853a78f71608861f455e702c03dcc4b2a7 (patch)
tree5b494bf06f10699fb1096be7344eea46f1e7509e /.emacs.d/lisp
parent8919b21ba75170086eb217105864679fdd9073bb (diff)
downloaddotfiles-2ba485853a78f71608861f455e702c03dcc4b2a7.tar.gz
Fix occasional aggressive-indent issue
Diffstat (limited to '.emacs.d/lisp')
-rw-r--r--.emacs.d/lisp/init-editor.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/.emacs.d/lisp/init-editor.el b/.emacs.d/lisp/init-editor.el
index 4c514df..a3b87d2 100644
--- a/.emacs.d/lisp/init-editor.el
+++ b/.emacs.d/lisp/init-editor.el
@@ -179,7 +179,7 @@
   (add-to-list 'aggressive-indent-dont-indent-if
                '(and (derived-mode-p 'prog-mode)
                      (string-match "^\s*;"
-                                   (thing-at-point 'line))))
+                                   (or (thing-at-point 'line) ""))))
   :hook
   (emacs-lisp-mode . aggressive-indent-mode))