From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: daniela-spit@gmx.it Newsgroups: gmane.emacs.help Subject: Re: Removing line and column number settings from some buffers Date: Thu, 3 Dec 2020 00:21:40 +0100 Message-ID: References: <87mtyv6h50.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="32932"; 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 Thu Dec 03 00:22:35 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 1kkbSF-0008TS-8k for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 03 Dec 2020 00:22:35 +0100 Original-Received: from localhost ([::1]:58938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkbSE-0008AF-69 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 02 Dec 2020 18:22:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35632) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkbRS-0008A8-Je for help-gnu-emacs@gnu.org; Wed, 02 Dec 2020 18:21:46 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:58205) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkbRQ-0004i1-6U for help-gnu-emacs@gnu.org; Wed, 02 Dec 2020 18:21:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1606951300; bh=ezRDoQottYT+FbnZuSfK4+78LGxYcyvUz1FxiwA/rSY=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=GJVjofIrReKZJ2T+uFgmGfDWYEYm+55VHpw0HQ4DboXWwlCvleX8W/wd6GWFkjCHO i9t89ENa6FGwLJ1jPhN2ly6DPSEJ4VeRbdiFjiulmsq+Y6u94ih8H3rNf1JigJCrro +7KwuB6NzpFG/Veab47VRlTuHYUr/JwzQB/vz9Mk= 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-bs11.server.lan [172.19.170.179]) (via HTTP); Thu, 3 Dec 2020 00:21:40 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <87mtyv6h50.fsf@zoho.eu> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:YAzTH5In6m+JKHFU+lA2LJSTSsv7jqDsN3CRd5Cpvr1IR4hjcCZzJrIQYFLsxFZoyH767 jo6bMWszARfMPMF4anKbxA2UaPOwKRgQM/uqz5PDhiygXp1UXm6g1Ys+qb/6jQQmSFa7gt+iMkyI B646z9euNlj3DUAqqlYsM64wcTUdd0P8rjWzrofoTU3JwbMNqiXT5Te7/Z1F7toXjam7SNvRoE+P uukFJqG8xZxH72M9ig91vtVZiOFX6NbbYPUNo4cdy8RtjR3C0LvBl5UC0ZfwbFSHCnE52s74Qhm1 dA= X-UI-Out-Filterresults: notjunk:1;V03:K0:6H7uZuuWIFE=:2SOfpijGHajDJyL4Ag30aK +szmYbCknk8Lwuhg2AEQNQrUw7G++suW0+v+NbIAHqXudgKmz/fe9u7vw7DVZVAdSQY6IUVpZ YtxNAqTcTwklJ2Oo07tTmsgpj29YTulkPUFYB0pmhP0JMGg7E+o3jQxzv0IeSLp/kQOzrDGdR L6sotIZHyL5pMVwOfwvCND42elCqy9oPA9xLt0uYCLj17USdxvdnULyIF+Srlb0ldxPbW4IP2 abI7y+ftfvMgAvUQ20sdK4aPr8fpOStO22RZ2tRtOMZ+UQKH9AUKRnnN5bVaXYKwOwRI5nd00 5QhVRQshLj+wMwhWf0PLr97m0YY3sWRaHs8sl7OcnMpZf8IGy0Rx1Fc8jqe2cbnU1mDEJ0KF/ oAooFg9Vlbzr95Dpv5zz8DwOhpKQa4B/ukET5ZpFVZ1gOLBXx6U2BmjBqmXZnB8oj1nx6oivb s6haYxakJw9PsQ9AJOZWEKvA+rnrP61Oed7gQ+e9tbiYXnnm+5S/RiI6eh4JjJD9gyJu+sDLl Hq/CyOPny+OxM0XcB1UcBWkrIztTLPilYR/edeklO2+OnbjyELU0Xq2yIf7KjfzpMS/0L1UG9 opE2RootzsZUg= Received-SPF: pass client-ip=212.227.15.15; envelope-from=daniela-spit@gmx.it; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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:125849 Archived-At: What could be wrong when setting the filename with (setq mode-line-buffer-identification "%b") > Sent: Wednesday, December 02, 2020 at 10:18 PM > From: "Emanuel Berg via Users list for the GNU Emacs text editor" > To: help-gnu-emacs@gnu.org > Subject: Re: Removing line and column number settings from some buffers > > daniela-spit wrote: > > > Am trying to set my diary but do not want to have the typical > > line and column numbers (had set thew with setq in init file). > > > > Would like to put them to nil but only to some specific > > buffer only. > > > > Have started with a function but not so much aware of what > > I have got to do. > > > > (defun column-line-number () > > > > (make-local-variable 'line-number-mode) > > (make-local-variable 'column-number-mode) > > > > (setq line-number-mode nil) > > (setq column-number-mode nil)) > > The below Elisp is how I do it, this makes it available > interactively everywhere (with M-x lines RET) but also for > default setups for specific modes, see the hook below for > an example. > > (defun toggle-local-var (var) > (set-variable var (not (symbol-value var)) t) ) > > (defun toggle-line-mode () > (interactive) > (toggle-local-var 'line-number-mode) ) > (defalias 'lines #'toggle-line-mode) > > (defun conf-space-mode-hook-f () > (lines) ) > (add-hook 'conf-space-mode-hook #'conf-space-mode-hook-f) > > See this file: > > https://dataswamp.org/~incal/emacs-init/mode-line.el > > -- > underground experts united > http://user.it.uu.se/~embe8573 > https://dataswamp.org/~incal > > >