blob: 53252f13078928356e1ab94f1ef3d6c4cdfce8b6 (
plain)
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
103
104
105
106
107
108
|
! Examples of customizing xmh with resource specifications.
! These can be copied to your private X resource file or to
! a private Xmh application defaults file.
! To create command buttons in the middle of the main window:
Xmh*CommandButtonCount: 8
Xmh*commandBox.button1.label: inc
Xmh*commandBox.button1.translations: #override\
<Btn1Down>,<Btn1Up>: XmhIncorporateNewMail() unset()
Xmh*commandBox.button2.label: compose
Xmh*commandBox.button2.translations: #override\
<Btn1Down>,<Btn1Up>: XmhComposeMessage() unset()
Xmh*commandBox.button3.label: next
Xmh*commandBox.button3.translations: #override\
<Btn1Down>,<Btn1Up>: XmhViewNextMessage() unset()
Xmh*commandBox.button4.label: prev
Xmh*commandBox.button4.translations: #override\
<Btn1Down>,<Btn1Up>: XmhViewPreviousMessage() unset()
Xmh*commandBox.button5.label: commit
Xmh*commandBox.button5.translations: #override\
<Btn1Down>,<Btn1Up>: XmhCommitChanges() unset()
Xmh*commandBox.button6.label: delete
Xmh*commandBox.button6.translations: #override\
<Btn1Down>,<Btn1Up>: XmhMarkDelete() unset()
Xmh*commandBox.button7.label: move
Xmh*commandBox.button7.translations: #override\
<Btn1Down>,<Btn1Up>: XmhMarkMove() unset()
Xmh*commandBox.button8.label: reply to viewed msg
Xmh*commandBox.button8.translations: #override\
<Btn1Down>,<Btn1Up>: XmhViewReply() unset()
! To use popup menus on the title bars of the main window,
! have them popup with the pointer over the previously selected item,
! and not be clipped by the screen boundary:
Xmh*stickyMenu: True
Xmh*messageMenu.MenuOnScreen: True
Xmh*folderTitlebar.translations: #override\n\
<BtnDown>: XawPositionSimpleMenu(folderMenu)MenuPopup(folderMenu)\n
Xmh*tocTitlebar.translations: #override\n\
<Btn2Down>: XawPositionSimpleMenu(messageMenu)MenuPopup(messageMenu)\n\
<BtnDown>: XawPositionSimpleMenu(tocMenu)MenuPopup(tocMenu)\n
Xmh.Paned.viewTitlebar.translations: #override\n\
<Btn2Down>: XawPositionSimpleMenu(sequenceMenu)MenuPopup(sequenceMenu)\n\
<BtnDown>: XawPositionSimpleMenu(viewMenu)MenuPopup(viewMenu)\n
! To redefine the accelerator bindings to exclude modifier keys,
! and add a translation for Compose Message:
Xmh*tocMenu.accelerators: #override\n\
!:<Key>I: XmhIncorporateNewMail()\n\
!:<Key>C: XmhCommitChanges()\n\
!:<Key>R: XmhForceRescan()\n\
!:<Key>P: XmhPackFolder()\n\
!:<Key>S: XmhSortFolder()\n
Xmh*messageMenu.accelerators: #override\n\
!:<Key>M: XmhComposeMessage()\n\
!<Key>space: XmhViewNextMessage()\n\
!:<Key>c: XmhMarkCopy()\n\
!:<Key>d: XmhMarkDelete()\n\
!:<Key>f: XmhForward()\n\
!:<Key>m: XmhMarkMove()\n\
!:<Key>n: XmhViewNextMessage()\n\
!:<Key>p: XmhViewPreviousMessage()\n\
!:<Key>r: XmhReply()\n\
!:<Key>u: XmhUnmark()\n
! Here is an example of some miscellaneous accelerators:
! ("clients/xmh" is a subfolder; it must be existing.)
Xmh*toc.accelerators: #override\n\
<Key>F1: XmhOpenFolder(inbox)XmhOpenSequence(all)\n\
<Key>F2: XmhOpenFolder(drafts)\n\
<Key>F3: XmhOpenFolder(clients/xmh)\n\
<Key>F4: XmhViewInNewWindow()\n\
<Key>F5: XmhPickMessages()\n
! Define Meta-S in the Compose window to do a send and close.
Xmh*comp.translations: #override\n\
!:Meta<Key>S: XmhSend()XmhCloseView()
|