From abd141aed9c3c8a1918dc7b30d555a71a3049ac5 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 7 May 2018 21:57:18 +0200 Subject: [PATCH] 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. --- modules/lang/cc/config.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/lang/cc/config.el b/modules/lang/cc/config.el index 99cde4032..4b5b04bcd 100644 --- a/modules/lang/cc/config.el +++ b/modules/lang/cc/config.el @@ -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")