diff --git a/jrnl/install.py b/jrnl/install.py index 03b3ede5..dcb83601 100644 --- a/jrnl/install.py +++ b/jrnl/install.py @@ -23,7 +23,7 @@ default_config = { 'journals': { "default": os.path.expanduser("~/journal.txt") }, - 'editor': "", + 'editor': os.getenv('VISUAL') or os.getenv('EDITOR') or "", 'encrypt': False, 'default_hour': 9, 'default_minute': 0,