Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CMake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
André Pedro
CMake
Commits
33fa10f6
Commit
33fa10f6
authored
11 years ago
by
Yasuyuki Oka
Committed by
Brad King
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
cmake-mode.el: Add autoload cookies
parent
d03a0fb4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Auxiliary/cmake-mode.el
+9
-4
9 additions, 4 deletions
Auxiliary/cmake-mode.el
with
9 additions
and
4 deletions
Auxiliary/cmake-mode.el
+
9
−
4
View file @
33fa10f6
...
...
@@ -23,10 +23,6 @@
;;
;; (setq load-path (cons (expand-file-name "/dir/with/cmake-mode") load-path))
;; (require 'cmake-mode)
;; (setq auto-mode-alist
;; (append '(("CMakeLists\\.txt\\'" . cmake-mode)
;; ("\\.cmake\\'" . cmake-mode))
;; auto-mode-alist))
;------------------------------------------------------------------------------
...
...
@@ -236,6 +232,7 @@ the indentation. Otherwise it retains the same position on the line"
;;
;; CMake mode startup function.
;;
;;;###autoload
(
defun
cmake-mode
()
"Major mode for editing CMake listfiles."
(
interactive
)
...
...
@@ -270,6 +267,7 @@ the indentation. Otherwise it retains the same position on the line"
; Help mode starts here
;;;###autoload
(
defun
cmake-command-run
(
type
&optional
topic
)
"Runs the command cmake with the arguments specified. The
optional argument topic will be appended to the argument list."
...
...
@@ -303,6 +301,7 @@ optional argument topic will be appended to the argument list."
)
)
;;;###autoload
(
defun
cmake-help-list-commands
()
"Prints out a list of the cmake commands."
(
interactive
)
...
...
@@ -312,6 +311,7 @@ optional argument topic will be appended to the argument list."
(
defvar
cmake-help-command-history
nil
"Topic read history."
)
(
require
'thingatpt
)
;;;###autoload
(
defun
cmake-get-topic
(
type
)
"Gets the topic from the minibuffer input. The default is the word the cursor is on."
(
interactive
)
...
...
@@ -328,6 +328,7 @@ optional argument topic will be appended to the argument list."
)
;;;###autoload
(
defun
cmake-help-command
()
"Prints out the help message corresponding to the command the cursor is on."
(
interactive
)
...
...
@@ -335,6 +336,10 @@ optional argument topic will be appended to the argument list."
(
cmake-command-run
"--help-command"
(
downcase
command
))
)
;;;###autoload
(
progn
(
add-to-list
'auto-mode-alist
'
(
"CMakeLists\\.txt\\'"
.
cmake-mode
))
(
add-to-list
'auto-mode-alist
'
(
"\\.cmake\\'"
.
cmake-mode
)))
; This file provides cmake-mode.
(
provide
'cmake-mode
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment