auto-insert: different templates for *.c and *.cpp
This commit is contained in:
parent
fb7efbcadc
commit
9cccfcef5d
1 changed files with 2 additions and 1 deletions
|
@ -17,7 +17,8 @@
|
||||||
(add-template! "/main\\.\\(cc\\|cpp\\)$" "@@main.cpp" 'c++-mode)
|
(add-template! "/main\\.\\(cc\\|cpp\\)$" "@@main.cpp" 'c++-mode)
|
||||||
(add-template! "/win32_\\.\\(cc\\|cpp\\)$" "@@winmain.cpp" 'c++-mode)
|
(add-template! "/win32_\\.\\(cc\\|cpp\\)$" "@@winmain.cpp" 'c++-mode)
|
||||||
(add-template! "\\.\\([Hh]\\|hpp\\)$" "@@.h" 'c++-mode)
|
(add-template! "\\.\\([Hh]\\|hpp\\)$" "@@.h" 'c++-mode)
|
||||||
(add-template! "\\.\\([Cc]\\|cc\\|cpp\\)$" "@@.cpp" 'c++-mode)
|
(add-template! "\\.\\(cc\\|cpp\\)$" "@@.cpp" 'c++-mode)
|
||||||
|
(add-template! "\\.c$" "@@.c" 'c-mode)
|
||||||
|
|
||||||
;; Shell scripts
|
;; Shell scripts
|
||||||
(add-template! "\\.z?sh$" "@@" 'sh-mode)
|
(add-template! "\\.z?sh$" "@@" 'sh-mode)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue