Browse Source

changed terminal name and fava exec path

master
marc 4 years ago
parent
commit
1bf9d67d47
1 changed files with 3 additions and 3 deletions
  1. 6
      user-global/elisp/beancount.el

6
user-global/elisp/beancount.el

@ -383,10 +383,10 @@ Leave point at the beginning of the thing under point.")
(defvar beancount-filename-main buffer-file-name
"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.")
(defvar beancount-fava-exec "/opt/fava/bin/fava"
(defvar beancount-fava-exec "/usr/bin/fava"
"Full path of fava executable.")
(defvar beancount-install-dir nil
@ -424,7 +424,7 @@ Only useful if you have not installed Beancount properly in your PATH")
(defun beancount-fava ()
"Run `beancount-fava' and open the URL in the default browser."
(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
(browse-url "127.0.0.1:5000"))

Loading…
Cancel
Save