From 1e8237fac8cd57754ae50d52905445bad1241d73 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Sat, 14 Dec 2019 00:03:12 +0800 Subject: [PATCH] Reorder define to avoid void error. --- eaf.el | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/eaf.el b/eaf.el index 481f9c8..dd9a52b 100644 --- a/eaf.el +++ b/eaf.el @@ -93,6 +93,16 @@ "EAF mode hook." :type 'hook) +(defcustom eaf-capture-keys + '("RET" "DEL" "TAB" "SPC" "" "" "" "" "" "" "" "" "") + "Keys should send key event for to python side." + :type 'cons) + +(defcustom eaf-capture-commands + '(self-insert-command delete-backward-char) + "Commands that should directly send key event to the Python side." + :type 'cons) + (defvar eaf-mode-map* (let ((map (make-sparse-keymap))) (define-key map (kbd "C-h m") 'eaf-describe-bindings) @@ -294,16 +304,6 @@ Try not to modify this alist directly. Use `eaf-setq' to modify instead." "The extension list of org previewer application." :type 'cons) -(defcustom eaf-capture-keys - '("RET" "DEL" "TAB" "SPC" "" "" "" "" "" "" "" "" "") - "Keys should send key event for to python side." - :type 'cons) - -(defcustom eaf-capture-commands - '(self-insert-command delete-backward-char) - "Commands that should directly send key event to the Python side." - :type 'cons) - (defvar eaf-app-binding-alist '(("browser" . eaf-browser-keybinding) ("pdf-viewer" . eaf-pdf-viewer-keybinding)