From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Turn on org-num-mode in init? Date: Mon, 9 Mar 2020 23:31:11 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000095241905a078972e" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51068) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jBWYD-0007Nq-9J for emacs-orgmode@gnu.org; Tue, 10 Mar 2020 00:31:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jBWYB-0004Hl-7z for emacs-orgmode@gnu.org; Tue, 10 Mar 2020 00:31:28 -0400 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]:34649) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jBWYA-0004CA-3p for emacs-orgmode@gnu.org; Tue, 10 Mar 2020 00:31:26 -0400 Received: by mail-lj1-x234.google.com with SMTP id s13so3342320ljm.1 for ; Mon, 09 Mar 2020 21:31:24 -0700 (PDT) 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode Mailinglist --00000000000095241905a078972e Content-Type: text/plain; charset="UTF-8" I've tried a few variations of trying to turn on org-num-mode (which now comes standard in org, correct?) in my init, but I keep getting an error buffer upon a fresh startup Error (use-package): org/:config: Cannot activate headline numbering outside Org mode although when I dismiss it with q and call up an org file, org-num-mode is on. Any ideas what to do? I saw this (use-package org-num :load-path "lisp/" :after org :hook (org-mode . org-num-mode)) but I assume he's using the github version. This (use-package org :defer 2 :ensure nil :hook ((org-mode . org-num-mode) (org-mode . (lambda () ;; this will make sure auto-fill works for org-mode (setq-local comment-auto-fill-only-comments nil) (setq-local display-line-numbers-type 'absolute)))) ... All of these produce the error, but, again, org-num works. LB --00000000000095241905a078972e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've tried a few variations of trying to turn on org-n= um-mode (which now comes standard in org, correct?) in my init, but I keep = getting an error buffer upon a fresh startup

Error (use-= package): org/:config: Cannot activate headline numbering outside Org mode<= br>

although when I dismiss it with q and call up = an org file, org-num-mode is on. Any ideas what to do? I saw this

(use-package org-num
=C2=A0 :load-path "lisp/"=
=C2=A0 :after org
=C2=A0 :hook (org-mode . org-num-mode))
<= div>
but I assume he's using the github version. This

(use-package org
=C2=A0 :defer 2
=C2=A0 :ensure= nil
=C2=A0 :hook
=C2=A0 ((org-mode . org-num-mode)
=C2=A0 =C2=A0(= org-mode . (lambda () ;; this will make sure auto-fill works for org-mode=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(setq-local= comment-auto-fill-only-comments nil)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0(setq-local display-line-numbers-type 'abso= lute))))
...

All of these produce th= e error, but, again, org-num works.

LB
--00000000000095241905a078972e--