1 Star 0 Fork 2

zhengchen/emacs

forked from latpaw/emacs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
init-artbollocks-mode.el 1.24 KB
一键复制 编辑 原始数据 按行查看 历史
(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)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cowboy13/emacs.git
git@gitee.com:cowboy13/emacs.git
cowboy13
emacs
emacs
master

搜索帮助