summary history branches tags files
commit:4bad4e9f07cfb0f1eb4dc991e1d81b8a70ac1302
author:Trevor Bentley
committer:Trevor Bentley
date:Sun Apr 29 20:33:19 2018 +0200
parents:22b3cbc9c815cc6d9ba480c6cde2cc41bb7a45f8
Have to define mode map before the mode...
diff --git a/maxibuffer.el b/maxibuffer.el
line changes: +4/-4
index 290be7d..3abb2dd
--- a/maxibuffer.el
+++ b/maxibuffer.el
@@ -60,6 +60,10 @@
 ;;
 ;;; Code:
 
+(defvar maxibuffer-mode-map (make-sparse-keymap))
+(define-key maxibuffer-mode-map (kbd "C-c C-c") 'maxibuffer-save-buffer)
+(define-key maxibuffer-mode-map (kbd "C-c C-k") 'maxibuffer-kill-buffer)
+
 (define-minor-mode maxibuffer-mode
   "Minor mode for text input buffers spawned by maxibuffer.
 Provides a keymap with default keys for saving and killing the
@@ -68,10 +72,6 @@ maxibuffer.
 Add your own keybindings to `maxibuffer-mode-map`"
   nil " maxi")
 
-(defvar maxibuffer-mode-map (make-sparse-keymap))
-(define-key maxibuffer-mode-map (kbd "C-c C-c") 'maxibuffer-save-buffer)
-(define-key maxibuffer-mode-map (kbd "C-c C-k") 'maxibuffer-kill-buffer)
-
 (defvar maxibuffer-mark-begin nil
   "Saved maxibuffer mark.
 Saves a mark at wherever the cursor was when the maxibuffer