Closed yantar92 closed 5 years ago
That init file seems to be missing something. Did you see this in the readme?
To install manually, put this file in your load-path, (require 'org-sticky-header) in your init file, and run org-sticky-header-mode.
... Did you see this in the readme?
Indeed, I saw it. use-package
calls require
internally.
Just for the purpose of testing, I tried the same init file with require
. Nothing changed.
Read the rest of it, please.
I see now. I missed that the heading to be shown is as in the point at the window start and I missed that org-sticky-header-full-path
cannot be set to 't
.
Would it make sense to add a user option to show the path to heading at point?
I see now. I missed that the heading to be shown is as in the point at the window start and I missed that
org-sticky-header-full-path
cannot be set to't
.Would it make sense to add a user option to show the path to heading at point?
That wasn’t what I meant. And, sorry, but I don’t understand what you mean here. Maybe you’re misunderstanding what this package is intended to do?
That wasn’t what I meant. And, sorry, but I don’t understand what you mean here. Maybe you’re misunderstanding what this package is intended to do?
I tried to explain my use case in https://github.com/alphapapa/org-sticky-header/pull/12#issuecomment-437556423.
Let's have the discussion in one place, please. :)
BTW, it's generally not advised to use setq
for options defined with defcustom
. As you discovered, it doesn't take into account the values the author has defined. You should use the customization system, or the :custom
keyword of use-package
, or validate-setq
.
You should use the customization system, or the :custom keyword of use-package, or validate-setq.
Thanks. I am not very famoliar with emacs customization)
It's very easy to use. Try M-x customize-group RET org-sticky-header RET
.
Sure. But I do not like that I cannot easily put it into my org style config and no background notes on the choise are available as a result.
That's why I said:
You should use the customization system, or the :custom keyword of use-package, or validate-setq.
Agree with that. I was not aware about :custom keyword and never heard about validate-setq before you pointed it out.
Just tried to install and use the package. It does not seem to work.
The header line appears to be either empty most of the time. I managed to get some text by randomly calling
org-next-visible-heading
,org-previous-visible-heading
, andoutline-up-heading
, but nothing is reliable. Most of the time, the header text is not being updated or becomes empty.Further, I tried to set
org-sticky-header-full-path
to't
and the heading text completely disappeared. I did not manage to get any kind of text in the heading now.Reproduced with
emacs -Q
with the following init file:Emacs version:
GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, X toolkit) of 2018-10-29
Org version:Org mode version 9.1.14 (9.1.14-3-geb9955a-elpaplus @ /home/yantar92/.emacs.d/elpa/org-plus-contrib-20180924/)