From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: jai-bholeki@gmx.com Newsgroups: gmane.emacs.help Subject: Re: problems with auto-fill-mode Date: Sat, 30 Jan 2021 18:14:08 +0100 Message-ID: References: <87im7emk4w.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5840"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: moasenwood@zoho.eu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 30 18:14:54 2021 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 1l5tpm-0001MB-9h for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 30 Jan 2021 18:14:54 +0100 Original-Received: from localhost ([::1]:40290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5tpl-0003Un-Bs for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 30 Jan 2021 12:14:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41020) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5tp7-0003U9-2W for help-gnu-emacs@gnu.org; Sat, 30 Jan 2021 12:14:13 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:57599) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5tp4-0000Xq-T4 for help-gnu-emacs@gnu.org; Sat, 30 Jan 2021 12:14:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1612026848; bh=Apr5IK2ZhNZUiT38HTU6Hs5VeR2BR9p/KPZavF9ajn4=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=QAd0T9xLw9V9Cc90Am6wI4P+8I7OV2xdhyaVOO41bwW1FzHH9SMm3SnLupsuFMSL2 r724qYeBLqnv7gsOapYnzcU41begZKh5SurySgSxERYyNsMl0cGgZkYx9UQYcEGy+q aCYdQuC1oR3dfLY6j2V83xV1DkIOct50Pjo+BAPk= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs16.server.lan [172.19.170.184]) (via HTTP); Sat, 30 Jan 2021 18:14:08 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <87im7emk4w.fsf@zoho.eu> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:2Up/INNIi4vRKv7TIis6s25ky6gPMA4CBLHfsu3Wk3RSOFWMXV+dcF8XCZiQCgR63BLvv NudF4h69BAzcYpi57J2gUe+WAWJiwndcHz9/o7NyhEMAWu0tqmrClZoTqU5OpUjKj6R6mRBXply7 Y3GEWY5Hp30QSA1x7FdPb8KOfDARWLlhBZI3MMib1sW/RuzzAMY4NZDCQH9c9PCMikLBbzdRKhkL 5dJ03qp/MhJmeSdr7ixyDEUfF/OC99Rw5wtXCJlhsxJcqXh8Y9EVRfM3Ox9kdk0GCekpr1mQTrBE LM= X-UI-Out-Filterresults: notjunk:1;V03:K0:COvntS3VUzc=:CH1XpCJrREqy4kfvqTk65j v0Kt+OFE30RiNHbH4nwVmLRG4JZ/kFP9fuSEl4Qkxv4gkL1vduhc71aD1OMBqgpbm+YapeTdg QW0QP77oIYB2EF5FORtiT8w5JbhRiRZRKXd4U0BejLL5w+cDCsx7JNcQBbp9p9qkNrcLxjqV5 v5ojyOLsigtC7CT0HjwEHLsaVC2hAWQzbZgKT9z2uirP3FSmy7PBlqVi9tyOvU+bB4l5H+Dnj 7nL6rvFeZFeJE4s34fa4vAUg71UDHteek4oNzdNyQd9XjYnX1QoMyUqlwpA9ZgnnTQyJKJjXN Jy/RYrvOSzX+pq72d1+cr6I44N+uff145D96JDG7Oj6DripcDPYfTYxna7c9DGlEJA7cKYJOE BVqynSxuE56h7hORLAFCiFTGNHEBP4SJ/z2eocX2bFBhx4l0VSHGkKJ+7FEj3eOkQi/e5p/5O agF49uuIBe1nEixGF17PJ8dwweisZpRqgNZVwwHpz6GkMINr00xCdHnHBzglkS/W7OJvfoPyq gtjeZEYa2GyOJCssySPTl2TtL2xMMwgPAUQwL/Ikemg74VO6By0Eub5EFfn6m5LWh1rW0MXys ib51eINfmLhFs= Received-SPF: pass client-ip=212.227.17.20; envelope-from=jai-bholeki@gmx.com; helo=mout.gmx.net 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no 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:127456 Archived-At: > Sent: Sunday, January 31, 2021 at 5:04 AM > From: "moasenwood--- via Users list for the GNU Emacs text editor" > To: help-gnu-emacs@gnu.org > Subject: Re: problems with auto-fill-mode > > jai-bholeki wrote: > > > Does it matter which expression to call first. > > > > (setq fill-column 72) > > (auto-fill-mode) > > > > or > > > > (auto-fill-mode) > > (setq fill-column 72) > > No, because the mode uses that variable setting every time > it fills. > > But the top version looks better and makes more sense: first > set it up, then enable. I would also think that setting "comment-auto-fill-only-comments" should also be set before enable. (setq fill-column 72) (setq-local comment-auto-fill-only-comments t) (auto-fill-mode) What about add-hook for auto-fill comments for specific files? (defun break-comments-din () "Break lines when they exceed a specific character length." (setq-local comment-auto-fill-only-comments t)) (add-hook 'sh-mode-hook #'break-comments-din) > -- > underground experts united > http://user.it.uu.se/~embe8573 > https://dataswamp.org/~incal > > >