From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Re: Turn on org-num-mode in init? Date: Tue, 10 Mar 2020 11:53:51 -0500 Message-ID: References: <874kuwwwpt.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000008c18f605a082f73d" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:52193) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jBi8w-0002bR-KC for emacs-orgmode@gnu.org; Tue, 10 Mar 2020 12:54:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jBi8r-0004p7-Ht for emacs-orgmode@gnu.org; Tue, 10 Mar 2020 12:54:10 -0400 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]:33910) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jBi8r-0004my-9Y for emacs-orgmode@gnu.org; Tue, 10 Mar 2020 12:54:05 -0400 Received: by mail-lj1-x22d.google.com with SMTP id s13so5752199ljm.1 for ; Tue, 10 Mar 2020 09:54:04 -0700 (PDT) In-Reply-To: <874kuwwwpt.fsf@ucl.ac.uk> 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: Lawrence Bottorff , emacs-orgmode Mailinglist --0000000000008c18f605a082f73d Content-Type: text/plain; charset="UTF-8" Good. That worked. I just put (require 'org-num) (add-hook 'org-mode-hook #'org-num-mode) inside my use-package org 's (massive) :config On Tue, Mar 10, 2020 at 1:28 AM Eric S Fraga wrote: > On Monday, 9 Mar 2020 at 23:31, Lawrence Bottorff wrote: > > 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 > > Maybe show us what you have right now instead of what others have done? > > In any case, this one: > > > (use-package org-num > > :load-path "lisp/" > > :after org > > :hook (org-mode . org-num-mode)) > > should work, as far as I can tell although I don't use use-package at > all. Have you tried with a reduced .emacs? > > You could try the following: > > (require 'org) > (require 'org-num) > (add-hook 'org-mode-hook #'org-num-mode) > > -- > : Eric S Fraga via Emacs 28.0.50, Org release_9.3.6-354-g9d5880 > --0000000000008c18f605a082f73d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Good. That worked. I just put

(requ= ire 'org-num)
(add-hook 'org-mode-hook #'org-num-mode)

inside my use-package org 's (massive) :config<= /div>


On Tue, Mar 10, 2020 at 1:28 AM Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
On Monday,=C2=A0 9 Mar 2020= at 23:31, Lawrence Bottorff wrote:
> I've tried a few variations of trying to turn on org-num-mode (whi= ch now
> comes standard in org, correct?) in my init, but I keep getting an err= or
> buffer upon a fresh startup

Maybe show us what you have right now instead of what others have done?

In any case, this one:

> (use-package org-num
>=C2=A0 =C2=A0:load-path "lisp/"
>=C2=A0 =C2=A0:after org
>=C2=A0 =C2=A0:hook (org-mode . org-num-mode))

should work, as far as I can tell although I don't use use-package at all.=C2=A0 Have you tried with a reduced .emacs?

You could try the following:

(require 'org)
(require 'org-num)
(add-hook 'org-mode-hook #'org-num-mode)

--
: Eric S Fraga via Emacs 28.0.50, Org release_9.3.6-354-g9d5880
--0000000000008c18f605a082f73d--