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:
Henrik Lissner 2018-05-07 21:57:18 +02:00
parent f943e3442c
commit abd141aed9
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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")