Prevent open-line-above/below from doing completion if no indentation is needed

This commit is contained in:
Gergely Polonkai 2023-10-17 14:00:44 +02:00
parent 60307f6432
commit 47abe6c958
No known key found for this signature in database
GPG Key ID: 2D2885533B869ED4
1 changed files with 6 additions and 2 deletions

View File

@ -485,7 +485,9 @@ Non-nil REVERSE means to sort in reverse order."
(beginning-of-line)
(newline)
(forward-line -1)
(indent-for-tab-command))
(let ((tab-always-indent t)
(c-tab-always-indent t))
(indent-for-tab-command)))
#+end_src
*** Open a new line below
@ -500,7 +502,9 @@ Copied from [[http://whattheemacsd.com/editing-defuns.el-01.html][whattheemacsd.
(end-of-line)
(newline)
(indent-for-tab-command))
(let ((tab-always-indent t)
(c-tab-always-indent t))
(indent-for-tab-command)))
#+end_src
*** Insert the current files name at point