|
@ -383,10 +383,10 @@ Leave point at the beginning of the thing under point.") |
|
|
(defvar beancount-filename-main buffer-file-name |
|
|
(defvar beancount-filename-main buffer-file-name |
|
|
"File name of the main beancount file for beancount-check.") |
|
|
"File name of the main beancount file for beancount-check.") |
|
|
|
|
|
|
|
|
(defvar beancount-terminal-name "urxvt" |
|
|
|
|
|
|
|
|
(defvar beancount-terminal-name "alacritty" |
|
|
"Name of the terminal emulator to run fava.") |
|
|
"Name of the terminal emulator to run fava.") |
|
|
|
|
|
|
|
|
(defvar beancount-fava-exec "/opt/fava/bin/fava" |
|
|
|
|
|
|
|
|
(defvar beancount-fava-exec "/usr/bin/fava" |
|
|
"Full path of fava executable.") |
|
|
"Full path of fava executable.") |
|
|
|
|
|
|
|
|
(defvar beancount-install-dir nil |
|
|
(defvar beancount-install-dir nil |
|
@ -424,7 +424,7 @@ Only useful if you have not installed Beancount properly in your PATH") |
|
|
(defun beancount-fava () |
|
|
(defun beancount-fava () |
|
|
"Run `beancount-fava' and open the URL in the default browser." |
|
|
"Run `beancount-fava' and open the URL in the default browser." |
|
|
(interactive) |
|
|
(interactive) |
|
|
(start-process "termx" nil beancount-terminal-name "-e" beancount-fava-exec beancount-filename-main) |
|
|
|
|
|
|
|
|
(start-process "termx" nil beancount-terminal-name "-e " beancount-fava-exec beancount-filename-main) |
|
|
(sleep-for 0.5) ; necessary to prevent an error |
|
|
(sleep-for 0.5) ; necessary to prevent an error |
|
|
(browse-url "127.0.0.1:5000")) |
|
|
(browse-url "127.0.0.1:5000")) |
|
|
|
|
|
|
|
|