Skip to content

Commit

Permalink
Remove all mention of turn-on-artbollocks-mode
Browse files Browse the repository at this point in the history
This function is no longer part of artbollocks-mode but the README and
the usage documentation in the source code both show it as the
preferred way to enable artbollocks-mode as a hook for other modes.
Attempting to use turn-on-artbollocks-mode can cause some obscure
errors, such as breaking log-edit-show-diff.  The correct way to
enable artbollocks-mode is to simply setup hooks to call that function
directly, and this patch changes the documentation to reflect that.

Signed-off-by: Eric James Michael Ritz <lobbyjones@gmail.com>
  • Loading branch information
Eric James Michael Ritz committed Jan 19, 2013
1 parent 0a82d1b commit 9321716
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README
Expand Up @@ -15,8 +15,8 @@ following to your .emacs file:
If you wish artbollocks-mode to be loaded automatically, add the following
to your .emacs file immediately after the autoload statement:

(add-hook 'text-mode-hook 'turn-on-artbollocks-mode)
(add-hook 'org-mode-hook 'turn-on-artbollocks-mode)
(add-hook 'text-mode-hook 'artbollocks-mode)
(add-hook 'org-mode-hook 'artbollocks-mode)

Manual Usage
============
Expand Down
14 changes: 7 additions & 7 deletions artbollocks-mode.el
Expand Up @@ -39,8 +39,8 @@
;; To use, save artbollocks-mode.el to a directory in your load-path.
;;
;; (require 'artbollocks-mode)
;; (add-hook 'text-mode-hook 'turn-on-artbollocks-mode)
;; (add-hook 'org-mode-hook 'turn-on-artbollocks-mode)
;; (add-hook 'text-mode-hook 'artbollocks-mode)
;; (add-hook 'org-mode-hook 'artbollocks-mode)
;;
;; or
;;
Expand Down Expand Up @@ -194,7 +194,7 @@
(setq match-data-to-set (match-data))))
(when match-data-to-set
(set-match-data match-data-to-set)
(goto-char (match-end 0))
(goto-char (match-end 0))
t)))

(defun artbollocks-lexical-illusions-search-for-keyword (limit)
Expand All @@ -210,19 +210,19 @@
(artbollocks-search-for-keyword artbollocks-jargon-regex limit))

(defconst artbollocks-lexicalkwlist
'((artbollocks-lexical-illusions-search-for-keyword
'((artbollocks-lexical-illusions-search-for-keyword
(2 'artbollocks-font-lock-lexical-illusions-face t))))

(defconst artbollocks-passivekwlist
'((artbollocks-passive-voice-search-for-keyword
'((artbollocks-passive-voice-search-for-keyword
(0 'artbollocks-font-lock-passive-voice-face t))))

(defconst artbollocks-weaselkwlist
'((artbollocks-weasel-words-search-for-keyword
'((artbollocks-weasel-words-search-for-keyword
(0 'artbollocks-font-lock-weasel-words-face t))))

(defconst artbollocks-kwlist
'((artbollocks-search-for-jargon
'((artbollocks-search-for-jargon
(0 'artbollocks-font-lock-artbollocks-face t))))

(defun artbollocks-add-keywords ()
Expand Down

0 comments on commit 9321716

Please sign in to comment.