* Turn on org-num-mode in init?
@ 2020-03-10 4:31 Lawrence Bottorff
2020-03-10 6:27 ` Eric S Fraga
0 siblings, 1 reply; 3+ messages in thread
From: Lawrence Bottorff @ 2020-03-10 4:31 UTC (permalink / raw)
To: emacs-orgmode Mailinglist
[-- Attachment #1: Type: text/plain, Size: 876 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 1167 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Turn on org-num-mode in init?
2020-03-10 4:31 Turn on org-num-mode in init? Lawrence Bottorff
@ 2020-03-10 6:27 ` Eric S Fraga
2020-03-10 16:53 ` Lawrence Bottorff
0 siblings, 1 reply; 3+ messages in thread
From: Eric S Fraga @ 2020-03-10 6:27 UTC (permalink / raw)
To: Lawrence Bottorff; +Cc: emacs-orgmode Mailinglist
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Turn on org-num-mode in init?
2020-03-10 6:27 ` Eric S Fraga
@ 2020-03-10 16:53 ` Lawrence Bottorff
0 siblings, 0 replies; 3+ messages in thread
From: Lawrence Bottorff @ 2020-03-10 16:53 UTC (permalink / raw)
To: Lawrence Bottorff, emacs-orgmode Mailinglist
[-- Attachment #1: Type: text/plain, Size: 982 bytes --]
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 <e.fraga@ucl.ac.uk> 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
>
[-- Attachment #2: Type: text/html, Size: 1492 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-03-10 16:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-10 4:31 Turn on org-num-mode in init? Lawrence Bottorff
2020-03-10 6:27 ` Eric S Fraga
2020-03-10 16:53 ` Lawrence Bottorff
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).