From fba84868524950823a25c72f3f337fc60fcb1ccf Mon Sep 17 00:00:00 2001 From: Matthew Date: Tue, 26 Nov 2019 23:53:11 -0500 Subject: [PATCH] Initiliaze var in defvar instead. Otherwise eaf-setq is called later --- eaf.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eaf.el b/eaf.el index 1b8e547..8deefe1 100644 --- a/eaf.el +++ b/eaf.el @@ -7,7 +7,7 @@ ;; Copyright (C) 2018, Andy Stewart, all rights reserved. ;; Created: 2018-06-15 14:10:12 ;; Version: 0.3 -;; Last-Updated: Tue Nov 26 19:58:38 2019 (-0500) +;; Last-Updated: Tue Nov 26 23:50:59 2019 (-0500) ;; By: Mingde (Matthew) Zeng ;; URL: http://www.emacswiki.org/emacs/download/eaf.el ;; Keywords: @@ -131,7 +131,8 @@ (defvar eaf-http-proxy-port "") -(defvar eaf-var-list '() +(defvar eaf-var-list + '((eaf-camera-save-path . "~/Downloads")) "The alist storing user-defined variables that's shared with EAF Python side. Use `eaf-setq' to modify this list.") @@ -736,7 +737,6 @@ Use it as (eaf-setq 'sym val)" (defun eaf-open-camera () "Open EAF camera application." (interactive) - (eaf-setq 'eaf-camera-save-path "~/Downloads") (eaf-open "eaf-camera" "camera")) (defun eaf-open-terminal ()