summaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Tom Willemse2015-12-17 00:59:32 +0100
committerGravatar Tom Willemse2015-12-17 00:59:32 +0100
commitb3a0345c7cd5f3e7d374aeaa89620f3cb8a1ef47 (patch)
treeb9c33f655b0d50296fc8bd12e552771a92fb9658 /emacs
parent168bcf9c5804532f4017ccca4d83200cedb7c6b3 (diff)
downloaddotfiles-b3a0345c7cd5f3e7d374aeaa89620f3cb8a1ef47.tar.gz
dotfiles-b3a0345c7cd5f3e7d374aeaa89620f3cb8a1ef47.zip
Fix warning in oni-html
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.el7
-rw-r--r--emacs/.emacs.d/site-lisp/oni-html.el7
2 files changed, 7 insertions, 7 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
index 0c0310e..fe2e6f5 100644
--- a/emacs/.emacs.d/init.el
+++ b/emacs/.emacs.d/init.el
@@ -389,13 +389,6 @@ use. If MODE is not nil, open a new buffer with the name
(interactive)
(revert-buffer nil t nil))
-(defun oni:replace-occurrences (from to)
- "Replace all occurrences of FROM with TO in the current buffer."
- (save-excursion
- (goto-char (point-min))
- (while (search-forward from nil t)
- (replace-match to))))
-
(defun oni:request-pull ()
"Start a mail to request pulling from a git repository."
(interactive)
diff --git a/emacs/.emacs.d/site-lisp/oni-html.el b/emacs/.emacs.d/site-lisp/oni-html.el
index e352ea4..88b961d 100644
--- a/emacs/.emacs.d/site-lisp/oni-html.el
+++ b/emacs/.emacs.d/site-lisp/oni-html.el
@@ -31,6 +31,13 @@
(oni:replace-occurrences "‘" "‘")
(oni:replace-occurrences "ë" "ë"))
+(defun oni:replace-occurrences (from to)
+ "Replace all occurrences of FROM with TO in the current buffer."
+ (save-excursion
+ (goto-char (point-min))
+ (while (search-forward from nil t)
+ (replace-match to))))
+
;;;###autoload
(defun oni:replace-html-special-chars-in-html-mode ()
"Replace special characters with HTML escaped entities in HTML mode."