-
Notifications
You must be signed in to change notification settings - Fork 1
/
elinks.conf
103 lines (87 loc) · 3.45 KB
/
elinks.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
## ELinks 0.11.7 configuration file
## This is ELinks configuration file. You can edit it manually,
## if you wish so; this file is edited by ELinks when you save
## options through UI, however only option values will be altered
## and missing options will be added at the end of file; if option
## is not written in this file, but in some file included from it,
## it is NOT counted as missing. Note that all your formatting,
## own comments and so on will be kept as-is.
##
## Obviously, if you don't like what ELinks is going to do with
## this file, you can change it by altering the config.saving_style
## option. Come on, aren't we friendly guys after all?
##############################
# Automatically saved options
#
## config
# Configuration handling options.
## config.saving_style_w [0|1]
# This is internal option used when displaying a warning about
# obsolete config.saving_style. You shouldn't touch it.
set config.saving_style_w = 1
################################
#### Keybindings
bind "main" "j" = "scroll-down"
bind "main" "k" = "scroll-up"
bind "main" "h" = "scroll-left"
bind "main" "l" = "scroll-right"
bind "main" "Ctrl-d" = "move-page-down"
bind "main" "Ctrl-u" = "move-page-up"
bind "main" "J" = "move-link-next"
bind "main" "K" = "move-link-prev"
bind "main" "H" = "history-move-back"
bind "main" "L" = "history-move-forward"
bind "main" "Ctrl-c" = "abort-connection"
bind "main" "o" = "goto-url"
bind "main" "O" = "goto-url-current-link"
bind "main" "t" = "open-new-tab"
bind "main" "T" = "open-link-in-new-tab-in-background"
bind "main" "d" = "tab-close"
bind "main" "g" = "move-document-start"
bind "main" "G" = "move-document-end"
bind "main" "r" = "reload"
bind "main" "e" = "tab-external-command"
# bind "main" "Ctrl-[" = "link-external-command"
bind "main" "V" = "link-external-command"
bind "main" "f" = "search-typeahead-link"
bind "menu" "j" = "down"
bind "menu" "k" = "up"
bind "menu" "h" = "left"
bind "menu" "l" = "right"
######################################################################
#### Viewing Images
set mime.extension.jpg="image/jpeg"
set mime.extension.jpeg="image/jpeg"
set mime.extension.png="image/png"
set mime.extension.gif="image/gif"
set mime.extension.bmp="image/bmp"
# set mime.handler.image_viewer.unix.ask = 1
set mime.handler.image_viewer.unix-xwin.ask = 0
# set mime.handler.image_viewer.unix.block = 1
set mime.handler.image_viewer.unix-xwin.block = 0
# set mime.handler.image_viewer.unix.program = "fbi %"
set mime.handler.image_viewer.unix-xwin.program = "viewnior %"
set mime.type.image.jpg = "image_viewer"
set mime.type.image.jpeg = "image_viewer"
set mime.type.image.png = "image_viewer"
set mime.type.image.gif = "image_viewer"
set mime.type.image.bmp = "image_viewer"
######################################################################
## colors
## note: color does not work with tmux
set document.colors.use_document_colors = 1
set terminal.screen-256color.colors = 1
set terminal.screen-256color.transparency = 1
set terminal.screen-256color.underline = 1
set terminal.screen-256color.utf_8_io = 1
set terminal.xterm-256color.colors = 2
set terminal.xterm-256color.transparency = 1
set terminal.xterm-256color.underline = 1
set terminal.xterm-256color.utf_8_io = 1
set document.css.enable = 1
set document.css.import = 1
set document.css.stylesheet = "user.css"
set document.colors.increase_contrast = 1
set document.colors.ensure_contrast = 1
set document.uri_passing.firefox = "firefox %c"
set ui.language = "System"