Edit text with emacs

This commit is contained in:
drymer 2018-02-04 22:04:25 +01:00
parent 1155e6203e
commit bb2d95f5a3
1 changed files with 8 additions and 0 deletions

View File

@ -541,3 +541,11 @@ key.setGlobalKey(["C-x", "r", "l"], function (ev, arg) {
key.setGlobalKey(["C-x", "b"], function (ev, arg) {
ext.exec("tanything", arg);
}, "view all tabs", true);
// ========================== k2emacs ==============================//
key.setEditKey (['C-x', 'C-e'], function (ev, arg) {
ext.exec ( "edit_text", arg, ev);
}, "Edit in external editor", true);
// plugins.options [ "K2Emacs.editor" ] = "/usr/local/bin/termite --title='emacsclient editor' --exec='emacsclient -t -c'";
plugins.options [ "K2Emacs.editor" ] = "/home/ap/Scripts/bin/open_with_emacsclient";