summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--efl-mode.el23
1 files changed, 23 insertions, 0 deletions
diff --git a/efl-mode.el b/efl-mode.el
new file mode 100644
index 0000000..80e243b
--- /dev/null
+++ b/efl-mode.el
@@ -0,0 +1,23 @@
1(c-add-style
2 "efl"
3 '("gnu"
4 (show-trailing-whitespace t)
5 (indent-tabs-mode . nil)
6 (tab-width . 8)
7 (c-offsets-alist .
8 ((defun-block-intro . 3)
9 (statement-block-intro . 3)
10 (case-label . 1)
11 (statement-case-intro . 3)
12 (inclass . 3)
13))))
14
15(defun efl-c-mode-hooks ()
16 (let ((path (buffer-file-name)))
17 (cond
18 ((string-match "/efl/src/" path) (c-set-style "efl"))
19)))
20
21(add-hook 'c-mode-common-hook 'efl-c-mode-hooks)
22
23(provide 'efl-mode)