branch: elpa/beancount commit 53a3f8e22d54388f76d8499dd3d2b13dca408726 Author: Daniele Nicolodi <dani...@grinta.net> Commit: Daniele Nicolodi <dani...@grinta.net>
Fix typo and make code a bit more idiomatic. --- beancount.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/beancount.el b/beancount.el index 1181424152..6daf63b520 100644 --- a/beancount.el +++ b/beancount.el @@ -1067,10 +1067,8 @@ Essentially a much simplified version of `next-line'." (message "Fava process killed")) (setq beancount--fava-process (start-process "fava" (get-buffer-create "*fava*") "fava" - (cond - ((string= 'beancountmode major-mode) - (buffer-file-name)) - (t (read-file-name "File to load: "))))) + (if (eq 'beancount-mode major-mode) (buffer-file-name) + (read-file-name "File to load: ")))) (set-process-filter beancount--fava-process #'beancount--fava-filter) (message "Fava process started")))