Thanks a lot!
I think your issue is that you've got an error in your init.org.
(set! editor-toolbar-show-in-mini #y)
should be
(set! editor-toolbar-show-in-mini #t)
I meet the same problem today, I want to do
(set! org-tags-column 0)
in `init.org` but it have no effect.
I will attach my init.org, you can simply reproduce this by just create an item with tag in any file.
org-tags-column is correct. So...
(set! org-tags-column 0)
...should work in beorg. In the REPL you can type (documentation 'org-tags-column) to get a description of this variable.
If its not working please provide a file showing how this has transformed the tags and I'll take a more detailed look.
Ahh, using REPL, I found that org-tags-column is set to -77 whereas I'm trying to set it to 0 in init.org.
Am I getting the variable name wrong?
That is, I had org-tag-columns set to -77 in init.org and my .emacs, but the two did not seem to set tags to the same column. So, per JZ above, I set them to 0. Emacs did the right thing, but Beorg was setting things back to somewhere in the -70s. Maybe a describe-variable in Beorg would help me.
Hmm. I'm trying to do the
* Fix tag alignment (set! org-tags-column 0)
in init.org, but it doesn't seem to be taking. Is there the equivalent of 'describe-variable' in Beorg?
Hi Matthew and David Masterson,
re the comment "Org-Mode aligns the list of tags at the right edge whereas BeOrg aligns the list of tags at the left edge" - from emacs documentation:
"org-tags-column is a variable defined in ‘org.el’. Its value is -77
Documentation:
The column to which tags should be indented in a headline. If this number is positive, it specifies the column. If it is negative, it means that the tags should be flushright to that column. For example, -80 works well for a normal 80 character screen. When 0, place tags directly after headline text, with only one space in
between."
So, rather than change the value to be -77, which seems like it wouldn't work correctly, you could set them both to be 0 in your init.el (for emacs) and init.org (for beorg).
Cheers, jz
Ideally beorg shouldn't be updating the file when nothing has changed, I will look to improve this behaviour.
OH! BTW, why is BeOrg doing any changes to the file when I haven't changed anything? It seems that just the act of unfolding/folding in BeOrg sets the file as having been updated. Also note that only the lines that I unfold/fold have the tags updated (I think).
I haven't tested this, but I think that Org-Mode aligns the list of tags at the right edge whereas BeOrg aligns the list of tags at the left edge. That is, the tags will *end* at column 77 in Org, but begin at 77 in BeOrg.
Tricky...
Ah, it looks as though the default for Org mode is -77 whereas beorg is defaulting to 80. I'll change the default in beorg. However if you want to see this before the next release create an init.org and add:
* Fix tag alignment (set! org-tags-column -77)
Got around to testing this again. Stripped everything out of my Emacs setup on Cygwin (removed .emacs.d and .emacs). Then I just loaded a recent version of org-mode into the clean Emacs and created a simple Org file with some headers that had some tags. After that, the test is to copy the file to my Dropbox sync directory, load the file into BeOrg, browse around the file (but don't change anything), and save the file back. I then copy the file back down from Dropbox and diff it with the original file. I find that there are changes to the file, but the only changes are the position of the tags on the header line. NOTE: I am not using an init file for BeOrg and my .emac file only has a "require" for 'org-mode'.
For some reason, BeOrg is realigning the tags in the file...
beorg should do the same as Emacs (although not necessarily in clean view). If you think it isn't please send Emacs config snippet and the beorg init.org snippet.
Could it be that Org is lining the tags up on the last character of the list of tags whereas BeOrg is lining them up on the first character?
David Masterson
Not sure how this is happening yet, but I suspect that BeOrg is involved. I tend to put my .org files into CVS. Lately, I've been noticing that CVS sometimes reports the only change is the position of the Tags on the Header line. For awhile, I assumed that it was something in the settings of Orgmode in Emacs, but I couldn't find anything. In theory, Orgmode should always be positioning the tags such that they end at a certain column (haven't found the variable yet), so, if I don't change the tags, there should be no change for CVS to pick up. This last time, I noticed that a file that I Rsynced over from my BeOrg Dropbox area had changed the position of the tags. I think it was the only file that I had looked at in BeOrg Files -- I don't think I had changed anything. A diff on the file with my backup showed the only difference was the position of the tags on the header lines. Looking at it even further, it appears that not every header line with tags was affected (perhaps the ones that were affected were the ones that were unfolded?) and that those that were affected had extra space added.
As I said, this is a little strange and I'm making some guesses that maybe you'll spot something from the inside.
1 person has this problem