Fix: Warning: reference to free variable `gadict-mode-map'.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 27 Mar 2016 16:35:30 +0300
changeset 392 4657b44ad9af
parent 391 68d510b25621
child 393 2756a6deca7e
Fix: Warning: reference to free variable `gadict-mode-map'.
contrib/gadict.el
--- a/contrib/gadict.el	Sun Mar 27 16:02:46 2016 +0300
+++ b/contrib/gadict.el	Sun Mar 27 16:35:30 2016 +0300
@@ -138,7 +138,7 @@
 
 (defun gadict-setup-keymap ()
   "Setup gadict keymap."
-  (define-key gadict-mode-map [C-return] 'gadict-new-entry))
+  (define-key (current-local-map) [C-return] 'gadict-new-entry))
 
 ;;;###autoload
 (define-derived-mode gadict-mode fundamental-mode "gadict"