emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 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

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).