summaryrefslogtreecommitdiff
path: root/.config/emacs/combobulate-c.el
blob: 5ac844d333e605990caab8b510e404229564764a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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)