# HG changeset patch
# User souliane <souliane@mailoo.org>
# Date 1457020943 -3600
# Node ID 6ec54626610c39bb4fd793318891d2e55bf5b199
# Parent  df1ca137b0cb0c9781e888a8c29f8e81da55a145
jp (blog): add to EDITOR_ARGS_MAGIC parameters for (x)emacs and nano

diff -r df1ca137b0cb -r 6ec54626610c frontends/src/jp/cmd_blog.py
--- a/frontends/src/jp/cmd_blog.py	Thu Mar 03 15:57:06 2016 +0100
+++ b/frontends/src/jp/cmd_blog.py	Thu Mar 03 17:02:23 2016 +0100
@@ -42,10 +42,14 @@
     }
 
 # defaut arguments used for some known editors
-VIM_SPLIT_ARGS="-c 'vsplit|wincmd w|next|wincmd w'"
+VIM_SPLIT_ARGS = "-c 'vsplit|wincmd w|next|wincmd w'"
+EMACS_SPLIT_ARGS = '--eval "(split-window-horizontally)"'
 EDITOR_ARGS_MAGIC = {
     'vim': VIM_SPLIT_ARGS + ' {content_file} {metadata_file}',
     'gvim': VIM_SPLIT_ARGS + ' --nofork {content_file} {metadata_file}',
+    'emacs': EMACS_SPLIT_ARGS + ' {content_file} {metadata_file}',
+    'xemacs': EMACS_SPLIT_ARGS + ' {content_file} {metadata_file}',
+    'nano': ' -F {content_file} {metadata_file}',
     }
 
 CONF_SYNTAX_EXT = 'syntax_ext_dict'