i-search if I use
dracula theme it highlights the line-number if the searched word is the first in the line.
If I uncomment
(load-theme 'dracula t) the example view would be where line number is not highlighted:
==> I just want to disable the highlight option for line numbers for a specific theme, is it possible? How to discard line-number highlight during i-search?
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes") (load-theme 'dracula t) (setq linum-format "%d ") (add-hook 'isearch-mode-hook (lambda () (linum-mode 1))) (add-hook 'isearch-mode-end-hook (lambda () (linum-mode 0))) (delete-selection-mode 1) ;; Overwrite selected text (define-key isearch-mode-map (kbd "C-w") 'isearch-forward-symbol-at-point) (defadvice isearch-repeat (after isearch-no-fail activate) (unless isearch-success (ad-disable-advice 'isearch-repeat 'after 'isearch-no-fail) (ad-activate 'isearch-repeat) (isearch-repeat (if isearch-forward 'forward)) (ad-enable-advice 'isearch-repeat 'after 'isearch-no-fail) (ad-activate 'isearch-repeat))) (define-advice isearch-repeat (:before (direction) goto-other-end) "If reversing, start the search from the other end of the current match." (unless (eq isearch-forward (eq direction 'forward)) (when isearch-other-end (goto-char isearch-other-end))))