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: Re: visualize evil insert mode Date: Thu, 05 Jul 2018 08:30:14 +0200 Organization: Herbert! Message-ID: <87bmbm9ouh.fsf@radagast.pgxml.net> References: <87k1qb8pqf.fsf@radagast.pgxml.net> <87in5v884r.fsf@telefonica.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1530772160 16796 195.159.176.226 (5 Jul 2018 06:29:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 5 Jul 2018 06:29:20 +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 Thu Jul 05 08:29:16 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 1faxlT-0004GY-TL for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Jul 2018 08:29:16 +0200 Original-Received: from localhost ([::1]:50546 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1faxna-0003kR-CY for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Jul 2018 02:31:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1faxmX-0003gF-QT for help-gnu-emacs@gnu.org; Thu, 05 Jul 2018 02:30:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1faxmU-0000fA-B4 for help-gnu-emacs@gnu.org; Thu, 05 Jul 2018 02:30:21 -0400 Original-Received: from gollum.pgxml.net ([217.160.178.10]:56714) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1faxmU-0000be-45 for help-gnu-emacs@gnu.org; Thu, 05 Jul 2018 02:30:18 -0400 Original-Received: from port-92-202-208-9.dynamic.qsc.de ([92.202.208.9]:40294 helo=radagast.pgxml.net) by gollum.pgxml.net with esmtpa (Exim 4.90_1) (envelope-from ) id 1faxmR-00051A-IT for help-gnu-emacs@gnu.org; Thu, 05 Jul 2018 08:30:16 +0200 Original-Received: from localhost ([::1] helo=radagast.pgxml.net) by radagast.pgxml.net with esmtp (Exim 4.84_2) (envelope-from ) id 1faxmQ-00016j-MX for help-gnu-emacs@gnu.org; Thu, 05 Jul 2018 08:30:14 +0200 In-Reply-To: <87in5v884r.fsf@telefonica.net> (=?utf-8?Q?=22=C3=93scar?= Fuentes"'s message of "Wed, 04 Jul 2018 15:04:20 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 217.160.178.10 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:117360 Archived-At: =C3=93scar Fuentes writes: > emacs-list-18@pgxml.net writes: > >> i am searching for ideas how to visualize that evil mode is in insert >> state. [...] > Any other ideas for this? No, hl-line-mode does not count... ;-) > > It depends on what you mean when you say "visualize". > > I use > > (setq evil-insert-state-cursor '("red" hbar)) > (setq evil-insert-state-tag > (propertize "" 'face '((:foreground "white" :background "red")))) > > Similar for the other modes. Thank you, i did not know that! :-) To be a bit more precise... - shows the current line where the cursor is (works halfway) - shows the current line even if it is empty (i am experimenting with overlays here) - works on terminals with less than 256 colors. Chris