From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Douglas Lewan Newsgroups: gmane.emacs.help Subject: Re: Turning off sh-electric-here-document-mode? Date: Wed, 13 May 2020 14:54:16 -0400 Message-ID: <9bc67fed-93b3-1c2f-c0c9-69886a730084@gmail.com> References: <24a35cbe-f315-d95b-218b-6849d69954b1@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="125981"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 13 20:54:52 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYwWq-000WgV-0m for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 13 May 2020 20:54:52 +0200 Original-Received: from localhost ([::1]:34116 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYwWp-0000pH-35 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 13 May 2020 14:54:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41914) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYwWL-0000oa-6w for help-gnu-emacs@gnu.org; Wed, 13 May 2020 14:54:21 -0400 Original-Received: from mail-qt1-x82b.google.com ([2607:f8b0:4864:20::82b]:36410) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jYwWK-0001MN-8W for help-gnu-emacs@gnu.org; Wed, 13 May 2020 14:54:20 -0400 Original-Received: by mail-qt1-x82b.google.com with SMTP id v4so748971qte.3 for ; Wed, 13 May 2020 11:54:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=roRF7kvpsjKqKjDZfIFXHAqKgC3mOjdeU05s/tB0eTg=; b=eviGFW5YCYwNwhb8Wu4na32eed4Wp3pJ+C867iRn+wjKFWmTICo9cWK2DVxdWyr48Q 8czmz7+pc1S0YlUIUUQ3H3AbwRONoXQ+0cxFo4OnDbqwKnKvH/q7Q2wW/H+ZLDw5zDHc +rxBMyriuTr9K7IPsIGUPdjbnHgO+vMIt1NzOEoEY7GOiPMIkwCk6uCkm0bDJBJ+ONDW JT3QP3u7DgUhBN7UaZ2e/cetzKWSZ3PZCoXRDTDPiS7VBBWywa3cU8FZ7Tz9rn2DmKaa LfCoYgEfiHAO4fVw1n/pfcf6QBv8YY+oX1FzwRL4eTTPLJE/mdNrQv/ZYUZdJ/NouV+F szbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=roRF7kvpsjKqKjDZfIFXHAqKgC3mOjdeU05s/tB0eTg=; b=sohLv0FISdlvr73HiLW5Ir+ffLpYnx3eaU81Aa3JLZ2pjxwOm+kEWZxGSdCQMng/Yo M2amrdupZwW1WgGnGFb7n5ej3/p5c9JVl7WmhWMGC7iuH9WB1B2RM/5BiDVe1Yfwzta3 tSiPCz6ZbnarSl7tshfUkXduEi7lZ8TQVMrDKVaDOEMTx4Wiqjm7suotN2GTKLOBYfC9 j/r3zvNJVm8sgV1gUHeB84qQgB9tAIZqW/lgKH1KZ5rX7pafjyd/bQuImEfDOyB5g5h8 jSZJ77lSKifd1H+13WnDNa7Xg+dGUxiP5OqOVSRtwgj4E0QvLqz7m5thXiiWlOOHSKel /NZQ== X-Gm-Message-State: AOAM530ik4ltfujyEi78aqt5kIYrRXcAlBB1l3zATyCmbitxrUUPPi2z hmCK+ahdvDzVP7M2OHl7xE6KFhE= X-Google-Smtp-Source: ABdhPJx+kCfLPSbL/XrYKRidgpSwMpoB1pbG8C5koK4YlVLd5+vfFl+kk/xGWs24+zorXoNhBRGg+g== X-Received: by 2002:ac8:4e8d:: with SMTP id 13mr542588qtp.293.1589396058741; Wed, 13 May 2020 11:54:18 -0700 (PDT) Original-Received: from [192.168.43.104] ([172.58.236.2]) by smtp.gmail.com with ESMTPSA id j6sm521408qkl.87.2020.05.13.11.54.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 May 2020 11:54:18 -0700 (PDT) In-Reply-To: Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::82b; envelope-from=d.lewan2000@gmail.com; helo=mail-qt1-x82b.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123084 Archived-At: On 5/13/20 7:22 AM, Philipp Stephani wrote: > Am Mi., 13. Mai 2020 um 02:51 Uhr schrieb Douglas Lewan : >> OK. I'm sure I'm missing something obvious here. >> >> I want to turn off sh-electric-here-document-mode, but all the obvious >> things seem to fail. I've put every one of the following in my .emacs, >> but I still get here-documents in shell-script-mode. >> >> (sh-electric-here-document-mode nil) >> >> (sh-electric-here-document-mode 0) >> >> (sh-electric-here-document-mode -1) >> >> (sh-electric-here-document-mode) >> >> How do I do this? Thanks in advance. >> > > It's a local mode, so all of those will only enable it in whatever > buffer is current while evaluating your ~/.emacs (probably the scratch > buffer). You need to customize sh-mode-hook instead. Recall that this was emacs version 24.5. Possibly another important detail: It's Debian. (I know Debian does you some "favors"; this may have been yet another one.) I finally found the following solution ;; Don't give me here-documents by default. (add-hook 'sh-mode-hook (lambda () (setq sh-electric-here-document-mode nil) (sh-electric-here-document-mode 0))) I don't know if that's a right way of doing it, but it works. Thanks for the thought. It definitely nudged me in a right direction. -- ,Doug d.lewan2000@gmail.com (908) 720 7908 "Lie and deny." It's very popular these days.