aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emacs/.emacs.d/tempel-templates7
-rw-r--r--mariadb-server/sql/.dir-locals.el9
2 files changed, 16 insertions, 0 deletions
diff --git a/emacs/.emacs.d/tempel-templates b/emacs/.emacs.d/tempel-templates
index 2b421cc..ab35739 100644
--- a/emacs/.emacs.d/tempel-templates
+++ b/emacs/.emacs.d/tempel-templates
@@ -217,6 +217,13 @@ org-mode
(inlsrc "src_" p "{" q "}")
(title "#+title: " p n "#+author: " (user-full-name) n "#+language: en")
+c++-mode
+
+(ifdef "#ifdef " (p "" sym) "
+"
+ r
+ "
+#endif /* " sym " */" )
;; Local Variables:
;; mode: lisp-data
diff --git a/mariadb-server/sql/.dir-locals.el b/mariadb-server/sql/.dir-locals.el
index 4093b3a..2daa20a 100644
--- a/mariadb-server/sql/.dir-locals.el
+++ b/mariadb-server/sql/.dir-locals.el
@@ -5,6 +5,11 @@
(c-offsets-alist
. (
(inline-open . 0)
+ (substatement . +)
+ (statement-block-intro . +)
+ (arglist-cont-nonempty c-lineup-gcc-asm-reg c-lineup-arglist)
+ (inclass . +)
+ (defun-block-intro . +)
))
(comment-start . "/* ")
(comment-end . " */")
@@ -17,6 +22,10 @@
(c-offsets-alist
. (
(inline-open . 0)
+ (substatement . +)
+ (statement-block-intro . +)
+ (arglist-cont-nonempty c-lineup-gcc-asm-reg c-lineup-arglist)
+ (inclass . +)
))
(comment-start . "/* ")
(comment-end . " */")