Commit 603715b0 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(c-mode-map, fortran-mode-map): Add defvars.

parent 784f8619
......@@ -2348,6 +2348,9 @@ TYPE is the type of the wrapper to be added. Can be :before or :under."
'use-completion-under-or-before-point)))
;; C mode diffs.
(defvar c-mode-map)
(defun completion-c-mode-hook ()
(def-completion-wrapper electric-c-semi :separator)
(define-key c-mode-map "+" 'completion-separator-self-insert-command)
......@@ -2359,6 +2362,9 @@ TYPE is the type of the wrapper to be added. Can be :before or :under."
(add-hook 'c-mode-hook 'completion-c-mode-hook))
;; FORTRAN mode diffs. (these are defined when fortran is called)
(defvar fortran-mode-map)
(defun completion-setup-fortran-mode ()
(define-key fortran-mode-map "+" 'completion-separator-self-insert-command)
(define-key fortran-mode-map "-" 'completion-separator-self-insert-command)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment