summaryrefslogtreecommitdiff
path: root/cmake-init.el
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-01 14:08:14 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-01 14:08:14 +0000
commit029ae33999e9e451c4f426c2395190f32b554213 (patch)
tree9458a4b0994354375e13950218f97ce9373a5d92 /cmake-init.el
parentcb536ebde32d49ae420e01ea85e88a24cba333a0 (diff)
automatic import of cmakeopeneuler24.03_LTSopeneuler23.09
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))