summaryrefslogtreecommitdiff
path: root/.config/emacs/combobulate-c.el
diff options
context:
space:
mode:
Diffstat (limited to '.config/emacs/combobulate-c.el')
-rw-r--r--.config/emacs/combobulate-c.el25
1 files changed, 25 insertions, 0 deletions
diff --git a/.config/emacs/combobulate-c.el b/.config/emacs/combobulate-c.el
new file mode 100644
index 0000000..5ac844d
--- /dev/null
+++ b/.config/emacs/combobulate-c.el
@@ -0,0 +1,25 @@
+;;; combobulate-c.el --- C support for combobulate -*- lexical-binding: t; -*-
+
+(require 'combobulate-manipulation)
+(require 'combobulate-navigation)
+(require 'combobulate-rules)
+(require 'combobulate-settings)
+(require 'combobulate-setup)
+
+(eval-and-compile
+ (defvar combobulate-c-definitions
+ '((context-nodes
+ '("char_literal" "false" "field_identifier" "identifier" "null"
+ "number_literal" "statement_identifier" "string_literal" "true"
+ "type_identifier")))))
+
+(define-combobulate-language
+ :name c
+ :language c
+ :major-modes (c-ts-mode)
+ :custom combobulate-c-definitions
+ :setup-fn combobulate-c-setup)
+
+(defun combobulate-c-setup (_))
+
+(provide 'combobulate-c)