Luakit: Script+Plugins toggle, minor fixes.

Emacs: shell snippets.
Mutt: theme improvements.
master
Ambrevar 2012-07-05 11:59:23 +01:00
parent 09c9b105a6
commit 52e7e4d138
15 changed files with 20371 additions and 9 deletions

View File

@ -82,6 +82,7 @@ linux
linux-docs
linux-lts
logrotate
lrzip
ltrace
luakit
lvm2

View File

@ -316,6 +316,7 @@ linux-firmware
linux-lts
lirc-utils
logrotate
lrzip
lsof
ltrace
lua
@ -324,6 +325,7 @@ luajit
luakit
lvm2
lxterminal
lzo2
m4
make
man-db

View File

@ -1,3 +1,4 @@
#!/bin/bash
wget 'https://easylist-downloads.adblockplus.org/easylist.txt' -O ~/easylist.txt
mkdir -p "$XDG_DATA_HOME/luakit"
wget 'https://easylist-downloads.adblockplus.org/easylist.txt' -O "$XDG_DATA_HOME/luakit/easylist.txt"

View File

@ -243,6 +243,12 @@ add_binds("normal", {
buf("^ZQ$", function (w) w:close_win() end),
-- buf("^D$", function (w) w:close_win() end),
-- CUSTOM
-- Download page.
buf("^D$", function (w, c) w:enter_cmd(":download " .. (w.view.uri or "")) end),
-- Enter passthrough mode
key({"Control"}, "z", function (w) w:set_mode("passthrough") end),
})

View File

@ -82,15 +82,15 @@ domain_props = { --[[
enable_plugins = false,
enable_private_browsing = false,
user_stylesheet_uri = "",
},
},
["youtube.com"] = {
enable_scripts = true,
enable_plugins = true,
},
},
["bbs.archlinux.org"] = {
user_stylesheet_uri = "file://" .. luakit.data_dir .. "/styles/dark.css",
enable_private_browsing = true,
}, ]]
user_stylesheet_uri = "file://" .. luakit.data_dir .. "/styles/ArchLinux.css",
},
--]]
}
-- vim: et:sw=4:ts=8:sts=4:tw=80

View File

@ -110,7 +110,11 @@ require "downloads"
require "downloads_chrome"
-- CUSTOM
-- Download folder.
downloads.default_dir = os.getenv("HOME") .. "/temp"
-- if downloads.default_dir == nil then
-- downloads.default_dir = os.getenv("HOME")
-- end
downloads.add_signal("download-location", function (uri, file)
if not file or file == "" then
file = (string.match(uri, "/([^/]+)$")
@ -150,7 +154,7 @@ require "completion"
-- `,ts` to toggle scripts, `,tp` to toggle plugins, `,tr` to reset.
-- Remove all "enable_scripts" & "enable_plugins" lines from your
-- domain_props table (in config/globals.lua) as this module will conflict.
--require "noscript"
require "noscript"
require "follow_selected"
require "go_input"

10
.emacs
View File

@ -134,7 +134,15 @@
;; from being seen as a mail file.
(setq auto-mode-alist
(append
'(("[^\\.]mutt.*" . mail-mode)
'(("/tmp/mutt.*" . mail-mode)
)
auto-mode-alist)
)
;; Arch Linux PKGBUILD
(setq auto-mode-alist
(append
'(("PKGBUILD" . sh-mode)
)
auto-mode-alist)
)

View File

@ -83,6 +83,7 @@
("ds" "dans" nil 1)
("eg" "e.g." nil 3)
("ex" "exemple" nil 3)
("etre" "être" nil 1)
("exo" "exercice" nil 1)
("ficheir" "fichier" nil 0)
("ficheirs" "fichiers" nil 0)
@ -131,6 +132,7 @@
("tjrs" "toujours" nil 4)
("tps" "temps" nil 5)
("ts" "tous" nil 1)
("tschuss" "tschüss" nil 1)
("tt" "tout" nil 3)
("tte" "toute" nil 1)
("ttes" "toutes" nil 1)

View File

@ -0,0 +1,5 @@
#name : for i do done
# --
for i ; do
$0
done

View File

@ -0,0 +1,6 @@
#name : function
# --
${1:function} ()
{
$0
}

View File

@ -0,0 +1,5 @@
#name : if then fi
# --
if [ $1 ]; then
$0
fi

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -4,6 +4,7 @@
## Colours for items in the index
color index brightcyan black ~N
color index brightred black ~O
## Hmm, don't like this.
#color index brightgreen black "~N (~x byers.world)|(~x byers.x)|(~x langly.levallois123.axialys.net)|(~x the.earth.li)"
color index brightyellow black ~F

1
.save
View File

@ -173,7 +173,6 @@ FILELIST=(${FILELIST[*]} ".config/lxterminal/lxterminal.conf")
## Mutt
FILELIST=(${FILELIST[*]} ".muttrc")
FILELIST=(${FILELIST[*]} ".ml.sh")
for i in $(ls -ad --indicator-style=none .mutt.d/* | grep -vi 'cache')
do
FILELIST=(${FILELIST[*]} "$i")