(if (use-region-p)
(let ((beg (region-beginning)))
(goto-char (region-end))
- (insert "\ f")
+ (insert "\^O")
(goto-char beg)
(insert pre))
- (insert pre "\ f")))
+ (insert pre "\^O")))
(when (or (not (region-active-p)) (< (point) (mark)))
(forward-char (length pre))))
"Remove the closes formatting found closes to the current point."
(interactive)
(save-excursion
- (when (and (search-backward-regexp (rx (or "\ 2" "\1d" "\1f" "\1e" "\11"))
+ (when (and (search-backward-regexp (rx (or "\^B" "\^]" "\^_" "\^^" "\^Q"))
rcirc-prompt-end-marker t)
- (looking-at (rx (group (or "\ 2" "\1d" "\1f" "\1e" "\11"))
+ (looking-at (rx (group (or "\^B" "\^]" "\^_" "\^^" "\^Q"))
(*? nonl)
- (group "\ f"))))
+ (group "\^O"))))
(replace-match "" nil nil nil 2)
(replace-match "" nil nil nil 1))))
formatting will be replaced before the bold formatting is
inserted."
(interactive "P")
- (rcirc-format "\ 2" replace))
+ (rcirc-format "\^B" replace))
(defun rcirc-format-italic (replace)
"Insert italic formatting.
formatting will be replaced before the italic formatting is
inserted."
(interactive "P")
- (rcirc-format "\1d" replace))
+ (rcirc-format "\^]" replace))
(defun rcirc-format-underline (replace)
"Insert underlining formatting.
formatting will be replaced before the underline formatting is
inserted."
(interactive "P")
- (rcirc-format "\1f" replace))
+ (rcirc-format "\^_" replace))
(defun rcirc-format-strike-trough (replace)
"Insert strike-trough formatting.
formatting will be replaced before the strike-trough formatting
is inserted."
(interactive "P")
- (rcirc-format "\1e" replace))
+ (rcirc-format "\^^" replace))
(defun rcirc-format-fixed-width (replace)
"Insert fixed-width formatting.
formatting will be replaced before the fixed width formatting is
inserted."
(interactive "P")
- (rcirc-format "\11" replace))
+ (rcirc-format "\^Q" replace))
(defvar-keymap rcirc-mode-map
:doc "Keymap for rcirc mode."