summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2013-11-26 10:02:12 -0800
committerCraig Earls <enderw88@gmail.com>2013-11-26 10:02:12 -0800
commit0e5867bc5c164036d4a4efbcb6e38f713d9ebacd (patch)
tree7e1fb144fc8156a56e95214ebeb896a4d67568e8 /lisp
parentf49b425feef0ffb5b62e3e583c8e2c9ce55a4feb (diff)
parent5b4400b2d03d6277689a00ec2e7037abe9e5b216 (diff)
downloadfork-ledger-0e5867bc5c164036d4a4efbcb6e38f713d9ebacd.tar.gz
fork-ledger-0e5867bc5c164036d4a4efbcb6e38f713d9ebacd.tar.bz2
fork-ledger-0e5867bc5c164036d4a4efbcb6e38f713d9ebacd.zip
Merge pull request #218 from vanicat/t/reload-init
Reload init when calling ledger-init-load-init-file again. I don't know why I missed that before. This is how it is supposed to work. Thanks.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ledger-init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ledger-init.el b/lisp/ledger-init.el
index 4ceee4f1..d7eeb3f6 100644
--- a/lisp/ledger-init.el
+++ b/lisp/ledger-init.el
@@ -54,7 +54,8 @@
(interactive)
(let ((init-base-name (file-name-nondirectory ledger-init-file-name)))
(if (get-buffer init-base-name) ;; init file already loaded, parse it and leave it
- (ledger-init-parse-initialization init-base-name)
+ (setq ledger-environment-alist
+ (ledger-init-parse-initialization init-base-name))
(when (and ledger-init-file-name
(file-exists-p ledger-init-file-name)
(file-readable-p ledger-init-file-name))