Re: [O] Ediff org files starts folded
Oleh Krehelwrites: > Here's what I use: > > (defun ora-ediff-prepare-buffer () > (when (memq major-mode '(org-mode emacs-lisp-mode)) > (outline-show-all))) > > (add-hook 'ediff-prepare-buffer-hook 'ora-ediff-prepare-buffer) Thank you! This works very well for me. It's been on my TODO list to figure out how to do this for a while. Stig
Re: [O] Ediff org files starts folded
Yeah, it would be nice to have something that folds the tree back to its original state after the ediff! (excitement) - ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands! $24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options!
Re: [O] Ediff org files starts folded
Thanks, I think this does exactly what I was looking for! Alex On Wed 25 Oct 2017 at 18:30, Oleh Krehelwrote: > Here's what I use: > > (defun ora-ediff-prepare-buffer () > (when (memq major-mode '(org-mode emacs-lisp-mode)) > (outline-show-all))) > > (add-hook 'ediff-prepare-buffer-hook 'ora-ediff-prepare-buffer) > > regards, > Oleh
Re: [O] Ediff org files starts folded
Here's what I use: (defun ora-ediff-prepare-buffer () (when (memq major-mode '(org-mode emacs-lisp-mode)) (outline-show-all))) (add-hook 'ediff-prepare-buffer-hook 'ora-ediff-prepare-buffer) regards, Oleh
Re: [O] Ediff org files starts folded
On 25 October 2017 at 12:04, Alex Branhamwrote: > Whenever I ediff an org file, the three windows start with the content folded > and out of site. I have to navigate to windows A, B, and C and hit S- > until everything is visible. Does anyone know a way to start org mode files > unfolded when ediffing them? Spacemacs automatically unfolds both buffers when ediff’ing Org Mode. I suppose the mechanism is the presence of ~'show-all~ in ~ediff-prepare-buffer-hook~. The downside is that, when you finish ediff’ing, the affected Org buffers are still completely unfolded. If you want this behavior, perhaps you should use the new function name – ~outline-show-all~ – instead, because ~show-all~ is an obsolete alias since GNU Emacs 25.1. Regards -- - I am Brazilian. I hope my English is correct and I welcome feedback - Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z - Free (as in free speech) software for Android: https://f-droid.org/
Re: [O] Ediff org files starts folded
org-startup-folded nil On 25/10/17 15:55, Tory S. Anderson wrote: I've wondered the same thing. Normally I just manually and open all bullets before ediffing, but this assumes, of course, that the file is already open. Alex Branhamwrites: Hello - Whenever I ediff an org file, the three windows start with the content folded and out of site. I have to navigate to windows A, B, and C and hit S- until everything is visible. Does anyone know a way to start org mode files unfolded when ediffing them? Thanks! Alex
Re: [O] Ediff org files starts folded
I've wondered the same thing. Normally I just manually and open all bullets before ediffing, but this assumes, of course, that the file is already open. Alex Branhamwrites: Hello - Whenever I ediff an org file, the three windows start with the content folded and out of site. I have to navigate to windows A, B, and C and hit S- until everything is visible. Does anyone know a way to start org mode files unfolded when ediffing them? Thanks! Alex
[O] Ediff org files starts folded
Hello - Whenever I ediff an org file, the three windows start with the content folded and out of site. I have to navigate to windows A, B, and C and hit S- until everything is visible. Does anyone know a way to start org mode files unfolded when ediffing them? Thanks! Alex