forked from vim-tw/vim-tw.github.io
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
162 lines (154 loc) · 7.47 KB
/
index.html
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "https://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Emacs 台灣社群</title>
<meta name="Generator" content="Emacs 24.5">
<meta name="syntax" content="mkd">
<meta name="settings" content="use_css,pre_wrap,expand_tabs">
<link rel="stylesheet" type="text/css" href="stylesheets/normalize.css" media="screen">
<link rel="stylesheet" type="text/css" href="stylesheets/jellybeans.emacs.css" media="screen">
<link rel="stylesheet" type="text/css" href="stylesheets/interface.css" media="screen">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-58474364-2', 'auto');
ga('send', 'pageview');
// 你不該往下看
var KEYS = []
var MB = null
var TIMEOUT_ID = null
function showMsgInMinibuffer (msg, duration) {
MB.textContent = msg
KEYS = []
if (duration !== -1) {
clearTimeout(TIMEOUT_ID)
TIMEOUT_ID = setTimeout(function () {
let copyleftImage = "<img width=\"18\" height=\"18\" src=\"images/copyleft.svg\">";
document.getElementById('minibuffer').innerHTML = "Copyleft " + copyleftImage + " 2015-" + new Date().getFullYear() + " Emacs Taiwan";
}, duration)
}
}
function handlePrefix () {
if (KEYS[0] === "C-x") {
switch (KEYS[1]) {
case "C-s": return showMsgInMinibuffer("唉呀呀,被你發現了這個呢!", 3000)
case "C-c": return showMsgInMinibuffer("哇,你竟然知道該怎麼離開 Emacs 耶!好棒棒!" , 3000)
case "C-f": return showMsgInMinibuffer("好啦不要再試了,這裡開檔是開不出什麼鳥的啦。" , 3000)
case "C-q": return showMsgInMinibuffer("哇你連這個都知道啊,但網頁本來就唯獨的啦。" , 3000)
case "C-e": return showMsgInMinibuffer("你在 eval 三小啦。" , 3000)
default: return showMsgInMinibuffer(MB.textContent = KEYS.join(" ") + " is undefined", 3000)
}
return showMsgInMinibuffer(3000)
}
}
window.addEventListener("keypress", function (e) {
if (e.ctrlKey) {
e.preventDefault()
if (e.key === 'h') {
showMsgInMinibuffer("Emacs 遇到困難可以按 C-h ,人生遇到困難可以按什麼啦啦啦", 3000)
} else if (e.key === 'g') {
showMsgInMinibuffer("就算你不按 C-g 這個網頁也什麼都不會做的啦。", 3000)
}
if (KEYS.length > 0) {
KEYS.push("C-" + e.key)
handlePrefix()
} else {
if (e.key === 'x') {
KEYS.push("C-x")
MB.textContent = "C-x-"
return
}
}
}
});
document.addEventListener("DOMContentLoaded", function () {
MB = document.getElementById('minibuffer')
showMsgInMinibuffer('', 0)
});
</script>
</head>
<body>
<div id="toolbar">
<img width="628" height="72" src="images/toolbar.png">
</div>
<table id="main">
<tbody>
<tr>
<td class="gutter">
<pre>
<span class="line"> 1 </span>
<span class="line"> 2 </span>
<span class="line"> 3 </span>
<span class="line"> 4 </span>
<span class="line"> 5 </span>
<span class="line"> 6 </span>
<span class="line"> 7 </span>
<span class="line"> 8 </span>
<span class="line"> 9 </span>
<span class="line">10 </span>
<span class="line">11 </span>
<span class="line">12 </span>
<span class="line">13 </span>
<span class="line">14 </span>
<span class="line">15 </span>
<span class="line">16 </span>
<span class="line">17 </span>
<span class="line">18 </span>
<span class="line">19 </span>
<span class="line">20 </span>
<span class="line">21 </span>
<span class="line">22 </span>
<span class="line">23 </span>
<span class="line">24 </span>
<span class="line">25 </span>
<span class="line">26 </span>
<span class="line">27 </span>
<span class="line">28 </span>
<span class="line">29 </span>
</pre>
</td>
<td class="code">
<pre>
<span class="line Title">#+TITLE: Emacs 台灣社群</span>
<span class="line"></span>
<span class="line">討論及分享 <span class="Underlined"><a href="https://www.gnu.org/software/emacs/">Emacs</a></span> 相關技巧外加聊天打屁的溫腥小社群。</span>
<span class="line"></span>
<span class="line">雖然說是台灣社群不過希望不要有什麼國族觀念,從哪裡來的都歡迎,謝謝 ˊ・ω・ˋ 。</span>
<span class="line"></span>
<span class="line Identifier"></span>我們的 GitHub: <span class="Underlined"><a href="https://github.com/emacs-tw">https://github.com/emacs-tw</a></span>
<span class="line"></span>
<span class="line Title">* 主要活動範圍</span>
<span class="line"></span>
<span class="line Identifier">- </span><span class="Underlined"><a target="_blank" href="https://telegram.me/joinchat/CJbTID9kpknioj9rYv6zgg">Telegram 群組聊天室</a></span>
<span class="line"></span>
<span class="line Title">* SNS </span>
<span class="line"></span>
<span class="line Identifier">- </span>Facebook 社團: <span class="Underlined"><a href="https://www.facebook.com/groups/emacs.taiwan/">https://www.facebook.com/groups/emacs.taiwan/</a></span>
<span class="line Identifier">- </span>@EmacsTW - <span class="Underlined"><a href="https://twitter.com/EmacsTW">https://twitter.com/EmacsTW</a></span>
<span class="line Identifier">- </span>IRC: <span class="Underlined"><a href="ircs://irc.libera.chat/emacs-tw">#emacs-tw@libera</a></span>
<span class="line Title"> </span>
<span class="line Title">* 專案</span>
<span class="line"></span>
<span class="line Identifier">- </span><a href="https://github.com/emacs-tw/emacs-101">Emacs 101</a> - 避免你 Emacs 學得靠背靠母的一本美好的新手求生指南<span class="cursor">█</span>
<span class="line Identifier">- </span><a href="https://github.com/emacs-tw/awesome-emacs">Awesome Emacs</a> - 就只是類似 Awesome Python 的一個各種有的沒的推薦套件列表啦
<span class="line Identifier">- </span><a href="https://github.com/emacs-tw/taiwan-calendar.el">taiwan-calendar.el</a> - 台灣用日曆本地化
<span class="line Identifier">- </span><a href="https://github.com/emacs-tw/meetup">meetup</a> - 「Emacs打滴」聚會紀錄
</pre>
</td>
</tr>
</tbody>
</table>
<footer>
<div id="mode-line">-UUU:%%- <span style="font-weight:bold;color:#111;">emacser.tw</span> All/5.2k(21,64) Git:master (Org) tw(49) --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</div>
<div id="minibuffer">Copyleft <img width="18" height="18" src="images/copyleft.svg"> 2015 Emacs Taiwan</div>
</footer>
</body>
</html>