emacs-achievements / ideas-achievements.el

  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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
This is a file with a bunch of random pieces of ideas for
achievements, and/or improvements to the mechanism.  It is a real
mess, but hey, it keeps me from forgetting things.

;; http://www.reddit.com/r/emacs/comments/ook6a/does_something_like_this_exist_for_emacs/

;; use view-external-packages as a list of useful packages



;;{{{ keybindings

(defachievement "The Examined Life"
  "You have command logging enabled."
  :package 'command-frequency)

(defachievement "Evil Genius"
  "Use `evil-mode'.")

(defachievement ""
  "Use `wordstar-mode'.")
crisp-mode

(defachievement "Vi Convert"
  "Use `evil-mode', `viper-mode' or `'."
  viper vi vip
  )

(defachievement "Emacs Purist"
  "You've never used `evil-mode', `viper-mode' or `'.")

[remap ffap-read-only-other-frame]
keyolution.el

;;}}}
;;{{{ org

(defachievement "Organizer"
  "Use `org-mode'.")

(defachievement "Busy Bee"
  "You have more than 100 TODO items in your agenda")

(defachievement ""
  "You have used org tables")

(defachievement ""
  "You have inline code in org-files")

(defachievement ""
  "You have exported an org file.")

org-replace-region-by-latex

;;}}}
;;{{{ Lisp

(defachievement ""
  "You have submitted a bug report.")

(defachievement "Autoload Master"
  "")

(defachievement ""
  "You have use M-:")

(defachievement ""
  "You have use C-x C-e")

(defachievement ""
  "You have use C-x e")
elint
checkdoc
edebug
profile
format-spec
cl package
command-switch-alist
define-derived-mode
benchmark-run
hack-let
debug-on-entry
debug-on-error
debug-on-quit
eval-last-sexp twice to get hex numbers
ert
disassemble

;;}}}
;;{{{ Modes

(defachievement "Polyglot"
  "You have used over 50 major-modes.")

(defachievement ""
  ;; descriptions like this could be autogenerated
  "You use cperl-mode."
  :function cperl-mode)
sh-script-mode

(defachievement ""
  "You use nxml-mode.")

(defachievement ""
  "You use ido-mode.")

(defachievement ""
  "You use ibuffer.")

(defachievement ""
  "You use AUCTeX.")

(defachievement ""
  "You use Emacs for IM, IRC, or chat.")

(defachievement ""
  "You use Emacs for reading email or news.")

(defachievement ""
  "You use Emacs for surfing the web")

(defachievement ""
  "You like line numbers")

(defachievement ""
  "You have compiled C, C++, .")

(defachievement ""
  "You have used calc")

(defachievement ""
  "You use midnight mode.")

(defachievement ""
  "You use rectangles.")

view-mode

;; programming
which-func-mode

;;}}}
;;{{{ Variables

(defachievement ""
  ;; descriptions like this could be autogenerated
  "You have set `completion-ignored-extensions'."
  :variable completion-ignored-extensions)

(defachievement ""
  "You have changed mode-line-format")

(defachievement ""
  "You have set variables with customize.")

(defachievement ""
  "You have at least one custom theme.")

(defachievement ""
  "You have at least 10 custom themes.")

(defachievement "Bilingual"
  "You have at least 10 custom themes.")

(defachievement ""
  "Sentences end with 2 spaces.")

(defachievement ""
  "Sentences end with 1 space.")

(defachievement ""
  "You have customized faces.")

(defachievement ""
  "Turn off menus and scroll bars.")

"Keeping up with the Joneses" customize-changed

;;}}}
;;{{{ Version control

(defachievement "Playing it Safe"
  "Your .emacs is under version control.")

(defachievement "Old Timer"
  "Your .emacs has been under version control for over 5 years ago.")

(defachievement ""
  "You have used smerge-mode to resolve conflicts.")

;;}}}
;;{{{ Editing

;; unicode characters
;; used mark commands
;; use keyboard macros -- C-x C-k for all things related
;; name-last-kbd-macro
;; apply-macro-to-region-lines
;; use lisp in regular expression replacements
;; abbrev mode
;; use registers
;; scroll other window
;; follow mode
;; selective-dsplay C-u C-x $
;; file-sets
;; comment-dwim
;; comment-or-uncomment-region or comment-region
mark-defun
mark-whole-buffer
delete-indentation
visual-line-mode
flyspell speck wcheck-mode
clone-indirect-buffer
move-to-window-line
append-next-kill
scroll-all-mode
transpose commands -- and with a prefix arg of 0
(how-to "C-0 M-k -- kill to beginning of line")
align
align-regexp
fill-paragraph
two-column
C-q -- especially in search and replace

;;}}}
;;{{{ Searching and replacing

occur-edit-mode
ack-and-a-half
multi-occur
isearch-edit-string
(how-to "In incremental search mode:
Type M-c to toggle search case-sensitivity.
Type M-r to toggle regular-expression mode.
Type M-s w to toggle word mode.
Type M-e to edit the search string in the minibuffer.
Type M-s h r to highlight the search throughout the buffer")
find-grep-dired
wgrep
C-j -- to match a newline when searching

;;}}}
;;{{{ whitespace

(defachievement ""
  "You prefer spaces.")

(defachievement ""
  "You prefer tabs.")

(defachievement ""
  "You prefer mixing spaces and tabs.  What's wrong with you?")

(defachievement ""
  "You hate trailing whitespace.")      ;Call delete-trailing-whitespace 100 times

(defachievement "Unyielding"
  :command 'indent-rigidly)

whitespace-mode

;;}}}
;;{{{ misc.

(defachievement "Author")
(defachievement "Editor"
  (over 50% are self-insert))

array
autorevert
avoid
battery
bug-reference
compare-windows
diary-lib
describe-text-properties
describe-char
delsel
dbus
css-mode
cwarn
cua-mode
subword
speedbar
cedet
sql
imenu
ediff
ecb
doc-view
yasnippet/skeleton/etc.

type-break-mode
enriched-mode
command-history
view-lossage
flymake
proced
re-builder
count-lines-region
sort-lines
sort-columns
autocomplete
secrets
saveplace
desktop
rot13
repeat
remember
regex-opt

rcompile

line-spacing
normal-mode
;; python-wars locate-library
repeat-complex-command
bookmarks
file/directory local variables

;; Look for "favorite emacs features" articles

network-interface-info

(defachievement "A little help from my friends"
  "You are using the Emacs starter kit")

(defachievement ""
  "You use dired.")                     ;and wdired

locate


c-eldoc
ace-jump-mode
writegood-mode
writeroom-mode
drag-stuff
parenface
paredit
num3-mode
multiple-cursors
mark-multiple
keyfreq
hl-sexp
highlight-symbol

linum

undo-tree
emacs-lock
smex
emerge
follow
finder
ffap
face-remap
fortune
hexl-mode
gud
zencoding-mode.el


(defachievement "UTF-8 utf-8 UTF8 utf8")
(master  "")
(longlines  "")

backup-directory-alist
uniquify
transient-mark-mode
(line-number-mode 1)
(column-number-mode 1)

tramp
tar zip etc.

(defachievement ""
  "You are running an emacs server.")


;; http://stackoverflow.com/questions/154097/whats-in-your-emacs


;; Check that the file hasn't been tampered with by using a checksum
;; (which of course can be changed if they know how).

;; Editing video
;; Emacsspeak
;; Using gnus or other mail reader
;; Ability to opt out of one, e.g. I'll never use viper-mode

;; How about polyglot for using many different major-modes. And an
;; achievement for having a big .emacs. Or rather an achievement for
;; every power of ten lines: 10, 100, 1000, 10000, etc. Using M-x
;; butterfly, the psychologist, all the games, redifing too many
;; keys... Using sexp keys a lot, having a long uptime, using vc-mode,
;; having lots of custom-themes... The possibilities are endless. Heck
;; there could even be one for modifying the source of the
;; achievements.el.

;; I just got the Mentally Unstable Emacs Badge for using M-x doctor
;; 113 times in a week!!!! I'm SO proud!


;; a function in post-command-hook (or just look at keyboard event, I
;; think that is possible somehow) that looks for commands/combos the
;; user uses, could trigger achievements for using stuff like M-x,
;; eval-expression, prefix args or certain patterns like switching
;; buffers often without editing, trying to save twice

;; in kill-emacs-hook could for triggering achievements at the end of
;; the session, for example the time the user spent in emacs, how many
;; loc he produced throughout the session, how many different files he
;; edited

;; compilation-finish-function could be used to trigger achievements
;; like compiling something without errors on the first try, maybe
;; achievements for certain kinds of simple errors (something like no
;; main method or a segfault when running, easy to detect stuff)

;; after-buffer-change and before-buffer-change could be used to keep
;; track of editing to trigger achievements when the user indents
;; regions, starts using comment-or-uncomment-line on regions, writing
;; out lots of loc without saving

;; after-save-hook for achievements like the number of concurrent
;; buffers a user has open, how many modified, using indirect buffers

;; change-major-mode to trigger achievements when the user starts
;; using certain major-modes, maybe check existence of symbols to
;; check if the user uses stuff that is not part of emacs like other
;; modes for programming languages (js2-mode for example), org-mode
;; (which is now part of emacs I believe), etc

;; I am pretty sure there is more one could come up with. You might be
;; tempted to use defadvice instead of all those hooks, but I would
;; strongly suggest not to, defadvice is made of pure evil and I would
;; try to stay away from it as far as possible.

;; I gave a few brief examples of what I think could be triggers for
;; achievements but that is not enough when designing
;; achievements. The final achievements should be helpful and
;; encouraging in the beginning for new users and later interesting
;; for advanced users.

;; To give a short example what I mean: an early achievement could be
;; just switching between buffers, that could encourage someone new to
;; start using more buffers, and help him learn about managing
;; them. Later an advanced user using lots of buffers using ibuffer
;; but without an ibuffer-saved-filter-groups variable would probably
;; find an achievement interesting that taught him about ibuffers
;; grouping feature.

;; I think achievements should be seen and designed as part of emacs
;; help system, for them to make sense they should be some kind of
;; naturally developing guide through emacs and therefore strongly
;; rely on the already existing help system.

;; Also there needs to be a way to make them visible to the user when
;; he gets them in form of notifications (maybe use libnotify?), and
;; also important, the user has to see 'what is going to come up
;; next'. He needs that so he can choose what the next achievement is
;; going to be that he wants to achieve, therefore giving feedback to
;; the help system what he wants to learn.

;; AUCTeX, a suite of extensions that facilitate the creation of TeX and LaTeX documents
;; Calc, a powerful RPN numerical calculator
;; Calendar-mode, for keeping appointment calendars and diaries
;; Dissociated Press, a Racter-like text generator.
;; Dunnet, a text adventure
;; Ediff and Emerge, for comparing and combining files interactively.
;; Emacs/W3, a web browser
;; ERC and rcirc, IRC clients (22.1)[30]
;; Gnus, a full-featured newsreader and email client (and early evidence for Zawinski's Law, along with Rmail)
;; MULE, MultiLingual extensions to Emacs, allowing editing text written in multiple languages, somewhat analogous to Unicode
;; Org-mode for keeping notes, maintaining lists (to-do lists and other types of lists) and doing project planning and measuring
;; Info, an online help-browser
;; Planner, a personal information manager
;; SES, a spreadsheet
;; VM (View Mail), another full-featured email client
;; Wanderlust, a versatile email and news client

;;}}}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.