Browse Source

small fixes for package installed fava and kitty as terminal

master
Marc 3 years ago
parent
commit
91b2f861d4
1 changed files with 3 additions and 4 deletions
  1. 7
      user-global/elisp/beancount.el

7
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 "alacritty"
(defvar beancount-terminal-name "kitty"
"Name of the terminal emulator to run fava.")
(defvar beancount-fava-exec "/usr/bin/fava"
(defvar beancount-fava-exec "/bin/fava"
"Full path of fava executable.")
(defvar beancount-install-dir nil
@ -424,10 +424,9 @@ 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"))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Completions

Loading…
Cancel
Save