lang/cc: alias cpp-mode to c++-mode
Offers an alternative for invoking c++-mode via M-x. The default M-x interfaces for helm and ivy treat input as regexp, thus not reading +'s literally, which can be annoying.
This commit is contained in:
parent
f943e3442c
commit
abd141aed9
1 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,8 @@ compilation database is present in the project.")
|
|||
:commands (c-mode c++-mode objc-mode java-mode)
|
||||
:mode ("\\.mm" . objc-mode)
|
||||
:preface
|
||||
(defalias 'cpp-mode 'c++-mode)
|
||||
|
||||
(defun +cc-c++-header-file-p ()
|
||||
(and buffer-file-name
|
||||
(equal (file-name-extension buffer-file-name) "h")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue