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 19:10:19 -0400 Message-ID: <46daf8ca-4670-e80f-f9ec-915705f090fa@gmail.com> References: <24a35cbe-f315-d95b-218b-6849d69954b1@gmail.com> <9bc67fed-93b3-1c2f-c0c9-69886a730084@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="49422"; 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 Cc: help-gnu-emacs To: Noam Postavsky Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 14 01:10:46 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 1jZ0WT-000CmJ-SX for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 14 May 2020 01:10:45 +0200 Original-Received: from localhost ([::1]:58222 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZ0WS-0001AF-TC for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 13 May 2020 19:10:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZ0W8-00019g-OH for help-gnu-emacs@gnu.org; Wed, 13 May 2020 19:10:24 -0400 Original-Received: from mail-qv1-xf31.google.com ([2607:f8b0:4864:20::f31]:38158) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jZ0W7-0001qX-NR for help-gnu-emacs@gnu.org; Wed, 13 May 2020 19:10:24 -0400 Original-Received: by mail-qv1-xf31.google.com with SMTP id t8so809108qvw.5 for ; Wed, 13 May 2020 16:10:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=RX5LzoXowo66s8solHrYKV53Mm3Ao/GXtrh8bp8FlX0=; b=CsQBSuujwgpcIuPizwmLIyMYX5KoeAt75EmpNbP5tlL3U8TzR69dUUHPmuiI3cjLu/ x4ozvFWyLhhDo1NJCc0C7MLDoorlcIFAiCsRlKptXUAU88aqvLisG2rVXEbbBDJRmlbT v+qsN80hW44n6ajaOulUJZTdEPrzxmQ12+rXSAhwkCP7zxiljNBf1ORdfzfkPuPvOZZy XZtdLAOH4aLn7ZMoFlPS7eVqjOkGUoKGihdpW3Fpp9f30OAUit9qEiSo1Tl1D7c49tSH 1C4QpfpcyL2m9kcfBlVzO8IOEsKKvJymnJQhT3zVpcvMDyjx3QQVK8WNfHpluMzCT6eI Y7Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=RX5LzoXowo66s8solHrYKV53Mm3Ao/GXtrh8bp8FlX0=; b=AoMONTT6R+5g+729RyESEIJQxRx78vUeilJBJRofI0mKhmeN/6rEcGeHxek68De+b1 010f4D5nqXHib8Vdk+F54F4QTCrReXNCB0G9cxtbIdsxA0EGg6At02R+zmAXfXYyI2RH Eu12Bhdf5MRGjjlh/z6a5cRODDbAAie2BtQazzY4dcNLL6ITFOojrI6a0CrYg2aPle5B VX4iyZpbNeOBNJyWA55jyezkzZIB6jzuGW+g5QAB7Z7rTb/SQy7tnr95U2Jj4DpSR7Vj UTmHViS4ti6qDLhsMArerZqyNorTawJdGZ17Ve8A2fbkP9sU5nZFIiKzcgDdh15OtP0V MhhQ== X-Gm-Message-State: AOAM531as+3Z/pESw9UJ/Rmj01tURnnOv2QwJHBGLkrb+fsUa8bkmdam w6nsUmKatqSBzzmvVEDoZtlg5Vc= X-Google-Smtp-Source: ABdhPJyvleuGZuJo5BzW2O39Z8C30PklMWufF7JQWar/rD/mc0VLyD0/+LE94idzBAcxMVGaD+Nu9Q== X-Received: by 2002:a05:6214:130c:: with SMTP id a12mr1943357qvv.192.1589411422442; Wed, 13 May 2020 16:10:22 -0700 (PDT) Original-Received: from [192.168.43.104] ([172.58.236.2]) by smtp.gmail.com with ESMTPSA id v78sm1035597qkb.62.2020.05.13.16.10.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 May 2020 16:10:21 -0700 (PDT) In-Reply-To: Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::f31; envelope-from=d.lewan2000@gmail.com; helo=mail-qv1-xf31.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: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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:123086 Archived-At: On 5/13/20 3:00 PM, Noam Postavsky wrote: > On Wed, 13 May 2020 at 14:54, Douglas Lewan wrote: > >> ;; 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. > The setq is redundant. And I usually prefer -1 rather than 0 to > disable modes for style reasons, but it works either way. Thanks. You're right, -1 works too. As someone who's really entirely self-taught in programming, I'm curious about what you mean by "style reasons" here. -- ,Doug d.lewan2000@gmail.com (908) 720 7908 "Lie and deny." It's very popular these days.