From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jonathan Kyle Mitchell Newsgroups: gmane.emacs.help Subject: Re: Can I turn off ivy-mode in comint buffers? Date: Sat, 30 Jun 2018 17:22:08 -0500 Message-ID: References: <24796.1530381157@rds059.goodyear.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1530397373 7498 195.159.176.226 (30 Jun 2018 22:22:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 30 Jun 2018 22:22:53 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: bbenedetto@goodyear.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 01 00:22:49 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 1fZOGV-0001sP-Ds for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Jul 2018 00:22:47 +0200 Original-Received: from localhost ([::1]:48153 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZOIZ-0002gi-4f for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Jun 2018 18:24:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZOGA-0002ak-NR for help-gnu-emacs@gnu.org; Sat, 30 Jun 2018 18:22:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZOG7-0005Gu-Iv for help-gnu-emacs@gnu.org; Sat, 30 Jun 2018 18:22:26 -0400 Original-Received: from mail-ed1-f52.google.com ([209.85.208.52]:43338) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fZOG7-0005EZ-Br for help-gnu-emacs@gnu.org; Sat, 30 Jun 2018 18:22:23 -0400 Original-Received: by mail-ed1-f52.google.com with SMTP id u11-v6so207611eds.10 for ; Sat, 30 Jun 2018 15:22:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=y33b9ay5xlNqrNkUGlZi7BZjC8YhJAjMKtKDAJP477Q=; b=VTwvK0ImOkOl0SdJR26gb6w4k6tfa4Z1JzDH4+hUN0jUwD/uA0vvEVcSI0Yf4pHqnm vcFHJ2qQiHeVj3IqKBkbyYMvHwM49wmqCkI2Mal6/HDULFMc3jUT58N2PWz9lLsctufT KnMhtuQyFAhewJAIzdUk90nkUvJHEnIy9KbQDMJvbR/kW/xWJ1tHZUWxyZJG1nCkG2HS mmKcpCw080B6gGJ4PbIOBoOiUDT9Bu7YY39F/I0AbOpaGojx9DcsKSkVnRrezQoiEUaU 6e9V8FrN3zPxjyF95LSF8sDsx5ywvQS/YvciJKyqRX8eyW/RJnz+y6XEsoGoLJPPvj1/ jxaw== X-Gm-Message-State: APt69E0T6DWPnjcw52pC4ZUrxLhIQGPVSOy+FxpYXHv6sYZjlrsf2HRQ sSYrID5OBzmqOW0KA4dZZuE7R/Uw X-Google-Smtp-Source: AAOMgpehQVQPOhvIsQ9qZKHitoJ+GC0vgHi+PTLSyPW5Foifxm1QLM/if2N37O2o0kml76mQSIxpsg== X-Received: by 2002:a50:8818:: with SMTP id b24-v6mr3532127edb.274.1530397341464; Sat, 30 Jun 2018 15:22:21 -0700 (PDT) Original-Received: from mail-wr0-f177.google.com (mail-wr0-f177.google.com. [209.85.128.177]) by smtp.gmail.com with ESMTPSA id w31-v6sm5342275edb.44.2018.06.30.15.22.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 30 Jun 2018 15:22:21 -0700 (PDT) Original-Received: by mail-wr0-f177.google.com with SMTP id k7-v6so8484112wrq.0 for ; Sat, 30 Jun 2018 15:22:20 -0700 (PDT) X-Received: by 2002:adf:9246:: with SMTP id 64-v6mr16162814wrj.109.1530397340648; Sat, 30 Jun 2018 15:22:20 -0700 (PDT) In-Reply-To: <24796.1530381157@rds059.goodyear.com> X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.208.52 X-Mailman-Approved-At: Sat, 30 Jun 2018 18:24:18 -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:117311 Archived-At: On Sat, Jun 30, 2018 at 3:36 PM wrote: > > Good day. > > I have loaded ivy-mode and really like it... everywhere except in > comint buffers (for filename completion). Is there some way to either > disable it in comint buffers or to just turn it on everywhere else? > > Sorry if this is a pretty basic question. I couldn't find an answer > either online or looking through the source. > > Thanks! > > -- > - Bill > +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ > Bill Benedetto The Goodyear Tire & Rubber Co. > I don't speak for Goodyear and they don't speak for me. We're both happy. One way to do it is to customize post-command-hook to dynamically turn ivy on and off depending on the current buffer's major mode. (ivy-mode 1) ; globally enabled (defun disable-ivy-in-comint-only () "Leave `ivy-mode' enabled everywhere except in buffers that derive from `comint-mode'." (if (derived-mode-p 'comint-mode) (ivy-mode -1) (ivy-mode 1))) (add-hook 'post-command-hook 'disable-ivy-in-comint-only) -- Jonathan Kyle Mitchell