diff options
author | Rémi Vanicat <vanicat@debian.org> | 2013-11-26 13:02:43 +0100 |
---|---|---|
committer | Rémi Vanicat <vanicat@debian.org> | 2013-11-26 13:19:38 +0100 |
commit | 5b4400b2d03d6277689a00ec2e7037abe9e5b216 (patch) | |
tree | 3fba86a32d989e17a5f88d66ee735db0a580f496 /lisp | |
parent | fc716a5ca1a5f107361970b55005cfd368268714 (diff) | |
download | fork-ledger-5b4400b2d03d6277689a00ec2e7037abe9e5b216.tar.gz fork-ledger-5b4400b2d03d6277689a00ec2e7037abe9e5b216.tar.bz2 fork-ledger-5b4400b2d03d6277689a00ec2e7037abe9e5b216.zip |
Reload init when calling ledger-init-load-init-file again.
When the ledger-init-load-init-file was called again, it used to parse ledger
init file, and to throw away the result. No you can use it to load this file
again when you have change something in it.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/ledger-init.el | 3 |
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)) |