From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: edgar@openmail.cc Newsgroups: gmane.emacs.help Subject: Re: How to set margins of buffer when window changes? Date: Wed, 08 Sep 2021 20:57:58 +0000 Message-ID: <482db5e0b61b1bd8509d93666bc717ff@openmail.cc> References: <20210908171222.Horde.S37YI7HmNoomvQZ1iZ9ma5I@www.vfemail.net> <87pmti511r.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="550"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Roundcube Webmail/1.2.3 Cc: help-gnu-emacs@gnu.org To: Joost Kremers Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 08 22:58:44 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 1mO4ea-000AUk-GE for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 08 Sep 2021 22:58:44 +0200 Original-Received: from localhost ([::1]:43516 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mO4eY-0000sw-W6 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 08 Sep 2021 16:58:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43690) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mO4eC-0000sY-HL for help-gnu-emacs@gnu.org; Wed, 08 Sep 2021 16:58:20 -0400 Original-Received: from smtp152.vfemail.net ([146.59.185.152]:42371) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1mO4eA-0000sw-Qs for help-gnu-emacs@gnu.org; Wed, 08 Sep 2021 16:58:20 -0400 Original-Received: (qmail 2238 invoked from network); 8 Sep 2021 20:58:16 +0000 Original-Received: from localhost (HELO freequeue.vfemail.net) () by smtpout.vfemail.net with ESMTPS (DHE-RSA-AES256-SHA encrypted); 8 Sep 2021 20:58:16 +0000 Original-Received: (qmail 58468 invoked from network); 8 Sep 2021 20:57:49 -0000 Original-Received: from localhost (HELO nl101-2.vfemail.net) (bmE=@127.0.0.1) by freequeue.vfemail.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 8 Sep 2021 20:57:49 -0000 Original-Received: (qmail 58211 invoked from network); 8 Sep 2021 20:57:32 -0000 Original-Received: by simscan 1.4.0 ppid: 58207, pid: 58209, t: 0.1137s scanners:none Original-Received: from unknown (HELO www.vfemail.net) (ZWRnYXJAb3Blbm1haWwuY2M=@192.168.1.192) by nl101.vfemail.net with ESMTPA; 8 Sep 2021 20:57:32 -0000 In-Reply-To: <87pmti511r.fsf@fastmail.fm> X-Sender: edgar@openmail.cc X-Remote-Browser: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0 X-Originating-IP: [2a03:e600:100::21] Received-SPF: softfail client-ip=146.59.185.152; envelope-from=edgar@openmail.cc; helo=smtp152.vfemail.net X-Spam_score_int: 7 X-Spam_score: 0.7 X-Spam_bar: / X-Spam_report: (0.7 / 5.0 requ) BAYES_20=-0.001, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, UNPARSEABLE_RELAY=0.001 autolearn=no 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:132967 Archived-At: On 2021-09-08 19:11, Joost Kremers wrote: > > I've written a minor mode that does this: > > https://github.com/joostkremers/visual-fill-column > > To centre the text, set `visual-fill-column-center-text` to `t`. > > Feel free to adapt the code to your needs or simply use it for > inspiration. :-) This is all that I need. Thank you very much. I would recommend adding your answer here: https://stackoverflow.com/q/39083118 https://stackoverflow.com/a/54098261 (I don't know how they make their money nor if you agree with that, but I've heard that people some times get royalties from websites :) ). Thanks again! ------------------------------------------------- This free account was provided by VFEmail.net - report spam to abuse@vfemail.net ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands! $24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options!