aboutsummaryrefslogtreecommitdiff
path: root/pentadactylrc
diff options
context:
space:
mode:
authorVasil Zlatanov <vasil.zlatanov@gmail.com>2014-08-01 20:43:37 +0300
committerVasil Zlatanov <vasil.zlatanov@gmail.com>2014-08-01 20:43:37 +0300
commitde12ddd5802b56445672589e467ff0eac98447f3 (patch)
tree7cba1ac4dc8fce19e60970825490cbe172a63a48 /pentadactylrc
parent5860b6cf98395ba7f008d1f048c734d748f68719 (diff)
downloaddotfiles-de12ddd5802b56445672589e467ff0eac98447f3.tar.gz
dotfiles-de12ddd5802b56445672589e467ff0eac98447f3.tar.bz2
dotfiles-de12ddd5802b56445672589e467ff0eac98447f3.zip
over the summer changes
Diffstat (limited to 'pentadactylrc')
-rw-r--r--pentadactylrc15
1 files changed, 14 insertions, 1 deletions
diff --git a/pentadactylrc b/pentadactylrc
index e9a27ed..3cfd843 100644
--- a/pentadactylrc
+++ b/pentadactylrc
@@ -120,7 +120,7 @@ map -count -modes=n,v U -builtin <count>u
map -count -modes=n,v x -builtin <count>d
map -count -modes=n,v w <count>o<Space>wikipedia<space>
set autocomplete=
-set defsearch=google
+set defsearch=startpage-https
set editor='rxvt -e sh -c "vim +<line> +\"sil! call cursor(0, <column>)\" <file>"'
@@ -133,3 +133,16 @@ au DownloadPost * :silent !~/.ratpoison/ranger_browser.sh <file>
" vim: set ft=pentadactyl:
+
+" Toggle images with A-i
+javascript <<EOF
+mappings.addUserMap([modes.NORMAL], ["<A-i>"],
+ "Toggle images display",
+ function () {
+ if (prefs.get('permissions.default.image') == 1)
+ prefs.set("permissions.default.image", 2);
+ else
+ prefs.set("permissions.default.image", 1);
+ tabs.reload(config.browser.mCurrentTab);
+ });
+EOF