Skip to content


replace iedit-occurrence-face with real face #18

merged 1 commit into from

2 participants


This makes customization and theme creation easier. The user should not have to create his own face if he doesn't want to use in existing one. I've kept the existing default of inheriting from "highlight"

@victorhge victorhge merged commit b4c7362 into victorhge:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 30, 2012
  1. replace iedit-occurrence-face with real face

    Le Wang committed
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 iedit-lib.el
6 iedit-lib.el
@@ -45,9 +45,9 @@
:group 'replace
:group 'convenience)
-(defcustom iedit-occurrence-face 'highlight
+(defface iedit-occurrence
+ '((t :inherit highlight))
"*Face used for the occurrences' default values."
- :type 'face
:group 'iedit)
(defcustom iedit-case-sensitive-default t
@@ -238,7 +238,7 @@ occurrence's default value, and modification hooks to update
occurrences if the user starts typing."
(let ((occurrence (make-overlay begin end (current-buffer) nil t)))
(overlay-put occurrence iedit-occurrence-overlay-name t)
- (overlay-put occurrence 'face iedit-occurrence-face)
+ (overlay-put occurrence 'face 'iedit-occurrence)
(overlay-put occurrence 'keymap keymap)
(overlay-put occurrence 'insert-in-front-hooks '(iedit-occurrence-update))
(overlay-put occurrence 'insert-behind-hooks '(iedit-occurrence-update))
Something went wrong with that request. Please try again.