summaryrefslogtreecommitdiff
path: root/cmake-init.el
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-02-03 18:32:18 +0000
committerCoprDistGit <infra@openeuler.org>2025-02-03 18:32:18 +0000
commitaef909b1372505e14db429cbc41faab40f24892c (patch)
tree9b04109e5ea4de23f892b948e815473a00682fa5 /cmake-init.el
parent5e22330e82e00d7a7ef0da6160cbfcfa89f831f6 (diff)
automatic import of cmakeopeneuler24.03_LTS_SP1
Diffstat (limited to 'cmake-init.el')
-rw-r--r--cmake-init.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake-init.el b/cmake-init.el
new file mode 100644
index 0000000..a5e0e2e
--- /dev/null
+++ b/cmake-init.el
@@ -0,0 +1,9 @@
+;;
+;; Setup cmake-mode for autoloading
+;;
+(autoload 'cmake-mode "cmake-mode" "Major mode for editing CMake listfiles." t)
+(setq auto-mode-alist
+ (append
+ '(("CMakeLists\\.txt\\'" . cmake-mode))
+ '(("\\.cmake\\'" . cmake-mode))
+ auto-mode-alist))