diff --git a/roles/qutebrowser-dotfiles/files/keysnail.js b/roles/qutebrowser-dotfiles/files/keysnail.js index f49c69d..6c5c507 100644 --- a/roles/qutebrowser-dotfiles/files/keysnail.js +++ b/roles/qutebrowser-dotfiles/files/keysnail.js @@ -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";