mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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")
|
||||
|
Reference in New Issue
Block a user