From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitrii Korobeinikov Subject: Truncate lines option on file startup Date: Sun, 10 Nov 2019 18:12:15 +0600 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000a3392a0596fced70" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:60610) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTm4z-00074H-Gr for emacs-orgmode@gnu.org; Sun, 10 Nov 2019 07:12:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iTm4y-00026b-Dg for emacs-orgmode@gnu.org; Sun, 10 Nov 2019 07:12:29 -0500 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:42299) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iTm4y-00026F-7o for emacs-orgmode@gnu.org; Sun, 10 Nov 2019 07:12:28 -0500 Received: by mail-wr1-x42e.google.com with SMTP id a15so11661931wrf.9 for ; Sun, 10 Nov 2019 04:12:27 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode --000000000000a3392a0596fced70 Content-Type: text/plain; charset="UTF-8" Hi, Thought it would be handy to be able to do this: #+STARTUP: truncate and #+STARTUP: notruncate Modifying org-startup-options manually wouldn't work as it describes how to change a value of a variable or push onto a list, but no syntax for function calls and for this to work toggle-truncate-lines is to be envoked. I know about org-startup-truncated, but it's not file-by-file precision. PS if this turns out to be hairy, I can use .dir-locals.el, but the feature would still be a nice-to-have. Regards, Dmitrii --000000000000a3392a0596fced70 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

Thought it would be hand= y to be able to do this:

#+STARTUP: truncate
an= d
#+STARTUP: notruncate

Modifying org-st= artup-options manually wouldn't work as it describes how to change a va= lue of a variable or push onto a list, but no syntax for function calls and= for this to work toggle-truncate-lines is to be envoked.

I know about org-startup-truncated, but it's not file-by-file p= recision.

PS if this turns out to be hairy, I can = use .dir-locals.el, but the feature would still be a nice-to-have.

Regards,
Dmitrii
--000000000000a3392a0596fced70--