Merge topic 'emacs-mode-no-reserved-bindings'
0f21261
cmake-mode.el: drop reserved keybindings (#14576)
This commit is contained in:
commit
46d85a1da0
|
@ -230,26 +230,13 @@ the indentation. Otherwise it retains the same position on the line"
|
||||||
;;
|
;;
|
||||||
(defvar cmake-tab-width 2)
|
(defvar cmake-tab-width 2)
|
||||||
|
|
||||||
;;
|
|
||||||
;; Keymap.
|
|
||||||
;;
|
|
||||||
(defvar cmake-mode-map
|
|
||||||
(let ((map (make-sparse-keymap)))
|
|
||||||
(define-key map "\C-ch" 'cmake-help-command)
|
|
||||||
(define-key map "\C-cl" 'cmake-help-list-commands)
|
|
||||||
(define-key map "\C-cu" 'unscreamify-cmake-buffer)
|
|
||||||
map)
|
|
||||||
"Keymap used in cmake-mode buffers.")
|
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; CMake mode startup function.
|
;; CMake mode startup function.
|
||||||
;;
|
;;
|
||||||
(defun cmake-mode ()
|
(defun cmake-mode ()
|
||||||
"Major mode for editing CMake listfiles.
|
"Major mode for editing CMake listfiles."
|
||||||
|
|
||||||
\\{cmake-mode-map}"
|
|
||||||
(interactive)
|
(interactive)
|
||||||
(kill-all-local-variables)
|
(kill-all-local-variables)
|
||||||
(setq major-mode 'cmake-mode)
|
(setq major-mode 'cmake-mode)
|
||||||
|
@ -276,9 +263,6 @@ the indentation. Otherwise it retains the same position on the line"
|
||||||
(make-local-variable 'comment-start)
|
(make-local-variable 'comment-start)
|
||||||
(setq comment-start "#")
|
(setq comment-start "#")
|
||||||
|
|
||||||
; Setup keymap.
|
|
||||||
(use-local-map cmake-mode-map)
|
|
||||||
|
|
||||||
; Run user hooks.
|
; Run user hooks.
|
||||||
(run-hooks 'cmake-mode-hook))
|
(run-hooks 'cmake-mode-hook))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue