From 47abe6c9587054ccc9ac68e6942dfa783bed28a5 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Tue, 17 Oct 2023 14:00:44 +0200 Subject: [PATCH] Prevent open-line-above/below from doing completion if no indentation is needed --- configuration.org | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/configuration.org b/configuration.org index 1488229..c25ca19 100644 --- a/configuration.org +++ b/configuration.org @@ -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 file’s name at point