Unverified Commit 9fffc002 authored by Andy Stewart's avatar Andy Stewart Committed by GitHub
Browse files

Merge pull request #95 from MatthewZMD/eaf-var-list

Make eaf-var-list defcustom
parents b3152ebb 6b55ac21
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -107,7 +107,7 @@ Please don't run EAF with root user, root user just can access DBus's system bus
## Settings

### Customization
You can easily configure variables that EAF Python side uses with the Emacs Lisp function `eaf-set`. Check the full list of configurable variables with `C-h v eaf-var-list`.
You can easily configure variables that EAF Python side uses with the Emacs Lisp function `eaf-setq`. Check the full list of configurable variables with `C-h v eaf-var-list`.
#### EAF Camera
The default directory to store images taken by EAF Camera is `~/Downloads`. To change it, put the following in `.emacs`
```Elisp
+9 −7
Original line number Diff line number Diff line
@@ -131,12 +131,6 @@

(defvar eaf-http-proxy-port "")

(defvar eaf-var-list
  '((eaf-camera-save-path . "~/Downloads"))
  "The alist storing user-defined variables that's shared with EAF Python side.

Try not to modify this alist directly. Use `eaf-setq' to modify instead.")

(defvar eaf-find-alternate-file-in-dired nil
  "If non-nil, when calling `eaf-file-open-in-dired', EAF unrecognizable files will be opened
by `dired-find-alternate-file'. Otherwise they will be opened normally with `dired-find-file'.")
@@ -151,6 +145,14 @@ by `dired-find-alternate-file'. Otherwise they will be opened normally with `dir
  :type 'string
  :group 'eaf)

(defcustom eaf-var-list
  '((eaf-camera-save-path . "~/Downloads"))
  "The alist storing user-defined variables that's shared with EAF Python side.

Try not to modify this alist directly. Use `eaf-setq' to modify instead."
  :type 'cons
  :group 'eaf)

(defcustom eaf-browser-keybinding
  '(("M-f" . "history_forward")
    ("M-b" . "history_backward")
@@ -275,7 +277,7 @@ by `dired-find-alternate-file'. Otherwise they will be opened normally with `dir
  (frame-parameter frame 'window-id))

(defun eaf-start-process ()
  "Start EAF process if it haven't started yet"
  "Start EAF process if it haven't started yet."
  (interactive)
  (if (process-live-p eaf-process)
      (message "EAF process has started.")