pl.po: update
[elinks.git] / contrib / lua / config.lua
blob62b74715c53ac6facbd9e1668a94aec5be65e2da
1 -- Configuration for hooks.lua file, put in ~/.elinks/ as config.lua.
3 -- ** IMPORTANT **
4 -- Individual functions may be disabled for security by assigning them
5 -- to `nil'.
7 -- openfile = nil -- may open files in write mode
8 -- readfrom = nil -- reading from pipe can execute commands
9 -- writeto = nil
10 -- appendto = nil
11 -- pipe_read = nil
12 -- remove = nil
13 -- rename = nil
14 -- execute = nil
15 -- exit = nil
17 -- Home directory:
19 home_dir = home_dir or (getenv and getenv ("HOME")) or "/home/MYSELF"
20 hooks_file = elinks_home.."/hooks.lua"
22 -- Pausing: When external programs are run, sometimes we need to pause
23 -- to see the output. This is the string we append to the command
24 -- line to do that. You may customise it if you wish.
26 pause = '; echo -ne "\\n\\e[1;32mPress ENTER to continue...\\e[0m"; read'
28 -- Make ALT="" into ALT=" ": Makes web pages with superfluous
29 -- images look better. However, even if you disable the "Display links
30 -- to images" option, single space links to such images will appear.
31 -- To enable, set the following to 1. If necessary, you can change
32 -- this while in Links using the Lua Console, then reload the page.
33 -- See also the keybinding section at the end of the file.
35 mangle_blank_alt = nil
37 -- For any other lua script to be loaded (note that you don't need to load
38 -- hooks.lua here, as it's loaded even when we'll get to here actually),
39 -- uncomment and clone following line:
41 -- dofile (elinks_home.."/script.lua")
43 -- The following commands, when uncommented, will load certain scripts that are
44 -- distributed with ELinks. If you enable any of them, you will need either
45 -- to copy the scripts to your home directory or to update the paths
46 -- in the commands relevant commands below.
48 -- Bookmarks: Uncomment the following line to enable the Lua bookmarks
49 -- manager
51 -- dofile (elinks_home.."/bm.lua")
53 -- Highlighting: Uncomment the following line if you want to see highlighted
54 -- source code. You need to have code2html installed and set text/html
55 -- as the MIME-type for .c, .h, .pl, .py, .sh, .awk, .patch extensions
56 -- in the Options Manager or in elinks.conf
58 -- dofile (elinks_home.."/highlight.lua")
60 -- Babelfish: This allows one to enter the the URL 'bb <from> <to>
61 -- <url>|<text>' to translate the given url or text string between
62 -- the given languages.
64 -- dofile (elinks_home.."/babelfish.lua")
66 -- dofile (elinks_home.."/md5checks.lua")
67 -- dofile (elinks_home.."/remote.lua")