From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: emacs-list-18@pgxml.net Newsgroups: gmane.emacs.help Subject: visualize evil insert mode Date: Wed, 04 Jul 2018 08:44:08 +0200 Organization: Herbert! Message-ID: <87k1qb8pqf.fsf@radagast.pgxml.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1530708273 2336 195.159.176.226 (4 Jul 2018 12:44:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 4 Jul 2018 12:44:33 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 04 14:44:28 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fah90-0000Tv-VS for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Jul 2018 14:44:27 +0200 Original-Received: from localhost ([::1]:46882 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fahB8-0005NE-28 for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Jul 2018 08:46:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fabWT-0006LT-06 for help-gnu-emacs@gnu.org; Wed, 04 Jul 2018 02:44:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fabWP-0001EB-3t for help-gnu-emacs@gnu.org; Wed, 04 Jul 2018 02:44:17 -0400 Original-Received: from gollum.pgxml.net ([217.160.178.10]:56818) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fabWO-0001BV-U7 for help-gnu-emacs@gnu.org; Wed, 04 Jul 2018 02:44:13 -0400 Original-Received: from port-92-202-167-149.dynamic.qsc.de ([92.202.167.149]:44720 helo=radagast.pgxml.net) by gollum.pgxml.net with esmtpa (Exim 4.90_1) (envelope-from ) id 1fabWK-0003rU-V6 for help-gnu-emacs@gnu.org; Wed, 04 Jul 2018 08:44:09 +0200 Original-Received: from localhost ([::1] helo=radagast.pgxml.net) by radagast.pgxml.net with esmtp (Exim 4.84_2) (envelope-from ) id 1fabWK-0002S1-Lq for help-gnu-emacs@gnu.org; Wed, 04 Jul 2018 08:44:08 +0200 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 217.160.178.10 X-Mailman-Approved-At: Wed, 04 Jul 2018 08:45:39 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117341 Archived-At: Hi, i am searching for ideas how to visualize that evil mode is in insert state. Till now i use a funvtion that is hooked into the post-command-hook that moves an overlay (face bold) like this: (defun ck/evil/move-insert-mode-overlay() "move the insert mode overlay" (move-overlay ck/insert-mode-overlay (line-beginning-position) (line-end-position)) ) This works, but is not that nice. For example on an empty line, i dont have any visual feedback. Any other ideas for this? No, hl-line-mode does not count... ;-) Chris