forked from mickeynp/combobulate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcombobulate-cpp.el
59 lines (49 loc) · 2.82 KB
/
combobulate-cpp.el
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
;;; combobulate-cpp.el --- cpp-specific features for combobulate -*- lexical-binding: t; -*-
;; Copyright (C) 2021 Mickey Petersen
;; Author: Mickey Petersen <mickey at masteringemacs.org>
;; Keywords:
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
;;; Commentary:
;;
;;; Code:
(defun combobulate-setup-cpp (_)
(setq combobulate-navigation-default-nodes `("translation_unit"
"namespace_definition"
"function_definition"
"class_specifier"
"alias_declaration"
"using_declaration"
"field_declaration"
"template_declaration"
"declaration"
"attributed_statement"
"co_return_statement"
"co_yield_statement"
"compound_statement"
"expression_statement"
"if_statement"
"return_statement"
"switch_statement"
"throw_statement"
"try_statement"
"while_statement"
"case_statement"
"break_statement"
"preproc_if"
"preproc_ifdef"
"preproc_include"
"preproc_def"
"preproc_function_def"
"preproc_else"
"preproc_elif")))
(provide 'combobulate-cpp)
;;; combobulate-cpp.el ends here