-
Notifications
You must be signed in to change notification settings - Fork 0
/
init-artbollocks-mode.el
35 lines (34 loc) · 1.24 KB
/
init-artbollocks-mode.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
(require 'artbollocks-mode)
;; Avoid these phrases
(setq weasel-words-regex
(concat "\\b" (regexp-opt
'("one of the"
"possibily"
"should"
"just"
"sort of"
"a lot"
"probably"
"maybe"
"perhaps"
"I think"
"really"
"pretty"
"maybe"
"nice"
"action"
"utilize"
"leverage") t) "\\b"))
;; Fix a bug in the regular expression to catch repeated words
(setq lexical-illusions-regex "\\b\\(\\w+\\)\\W+\\(\\1\\)\\b")
;; Don't show the art critic words, or at least until I figure
;; out my own jargon
(setq artbollocks nil)
;; Make sure keywords are case-insensitive
(defadvice search-for-keyword (around sacha activate)
"Match in a case-insensitive way."
(let ((case-fold-search t))
ad-do-it))
(add-hook 'text-mode-hook 'turn-on-artbollocks-mode)
(add-hook 'org-mode-hook 'turn-on-artbollocks-mode)
(provide 'init-artbollocks-mode)