Skip to content

Commit

Permalink
proper use of keymap in isar-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
m-fleury committed Jan 12, 2020
1 parent 1f3332a commit 9bfb497
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion isar-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
(defvar isar-mode-hook nil)

(defvar isar-mode-map
()
(make-sparse-keymap)
"Keymap for isar major mode")

;;;###autoload
Expand Down Expand Up @@ -404,6 +404,7 @@
(interactive)
(kill-all-local-variables)
(set-syntax-table isar-mode-syntax-table)
(set-keymap-parent isar-mode-map prog-mode-map)
(use-local-map isar-mode-map)
(set (make-local-variable 'font-lock-defaults) '(isar-font-lock-keywords))
(set (make-local-variable 'syntax-propertize-function)
Expand Down

0 comments on commit 9bfb497

Please sign in to comment.