emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/apache-mode 0e366be 09/23: Reindent lines


From: ELPA Syncer
Subject: [nongnu] elpa/apache-mode 0e366be 09/23: Reindent lines
Date: Sun, 29 Aug 2021 10:57:35 -0400 (EDT)

branch: elpa/apache-mode
commit 0e366be29fdbe193b416319c596c70c9a58d35f3
Author: USAMI Kenta <tadsan@zonu.me>
Commit: USAMI Kenta <tadsan@zonu.me>

    Reindent lines
---
 apache-mode.el | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/apache-mode.el b/apache-mode.el
index 3e5ba14..b12f24c 100644
--- a/apache-mode.el
+++ b/apache-mode.el
@@ -84,9 +84,9 @@
 
   (set (make-local-variable 'font-lock-defaults)
        '(apache-font-lock-keywords nil t
-                                   ((?_ . "w")
-                                    (?- . "w"))
-                                   beginning-of-line)))
+                             ((?_ . "w")
+                              (?- . "w"))
+                             beginning-of-line)))
 
 ;; Font lock
 (defconst apache-font-lock-keywords
@@ -784,13 +784,13 @@
   "Expressions to highlight in Apache config buffers.")
 
 (defun apache-indent-line ()
-   "Indent current line of Apache code."
-   (interactive)
-   (let ((savep (> (current-column) (current-indentation)))
-        (indent (max (apache-calculate-indentation) 0)))
-     (if savep
-        (save-excursion (indent-line-to indent))
-       (indent-line-to indent))))
+  "Indent current line of Apache code."
+  (interactive)
+  (let ((savep (> (current-column) (current-indentation)))
+        (indent (max (apache-calculate-indentation) 0)))
+    (if savep
+        (save-excursion (indent-line-to indent))
+      (indent-line-to indent))))
 
 
 (defun apache-previous-indentation ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]