Mercurial > libervia-backend
diff frontends/src/jp/cmd_blog.py @ 1873:6ec54626610c
jp (blog): add to EDITOR_ARGS_MAGIC parameters for (x)emacs and nano
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 03 Mar 2016 17:02:23 +0100 |
parents | df1ca137b0cb |
children | 658824755a0c |
line wrap: on
line diff
--- 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'