]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/ceph_dedup: add modelines for emacs and vim
authorKefu Chai <tchaikov@gmail.com>
Thu, 15 May 2025 06:58:22 +0000 (14:58 +0800)
committerKefu Chai <tchaikov@gmail.com>
Thu, 15 May 2025 22:16:56 +0000 (06:16 +0800)
add modelines for emacs and vim so that the source code is formatted
with expected alignment even if the editor's default setting is not
match with the expected settings.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/tools/ceph_dedup/ceph_dedup_daemon.cc

index 1e997bd5db264ffc256dfd6381998a8930b0aaeb..a3571ccb4a428dca274824a9593122566ac7d271 100644 (file)
@@ -1,3 +1,6 @@
+// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
+// vim: ts=8 sw=2 smarttab
+
 #include "common.h"
 #include "log/Log.h"