Hi Takaaki,
> I reproduced the first and the 3rd case you reported. > I think the following setting is better than using org-mode-hook. > > (add-hook 'find-file-hook > '(lambda () (when (eq major-mode 'org-mode) > > (org-tree-slide-mode)))) > > When you call org-agenda, it will visit many org-files listed in > org-agenda-files. This is why multiple displaying of greeting message is > occurred. > But actually, the message should be a custom variable. > I'll change it, thanks! Great, thanks. > In my environment, I cannot reproduce the 2nd case. > Could you test again with the above setting? With the above setting it works fine now. > Finally, when org-tree-slide is active, org-publish will export > the narrowed tree only. If you want to export whole trees, > please turn off org-tree-slide temporarily. This is what I currently do. However the problem is if you publish a project with let's say 10 files then you will have to open all 10 and toggle org-tree-slice mode manually, given that you made changes on all 10 files. Or you evaluate (remove-hook 'find-file-hook ...) That said since I have no project with 10 files which I change all at once turning off org-tree-slide manually is sufficient for me. Thanks, henry -- http://literaturlatenight.de