Fork me on GitHub
#emacs
<
2018-02-05
>
qqq13:02:53

(org-global-cycle 5) <-- how can I run this every time I open / enter a file ?

kingcode16:02:36

Is there a straightforward/pattern way to execute an action which replaces the current buffer with new content, in another window instead?

cmack16:02:03

@qqq are you trying to set the default visibility? https://orgmode.org/manual/Initial-visibility.html#Initial-visibility might help, esp. the org-startup-folded variable

cmack16:02:08

@kingcode many times the code jumping functionality is mapped to M-. and then the return functionality mapped to M-,

kingcode16:02:02

@cmack Thank you!…That worked, exept for M-. because it is overridden for evil-mode, but I can use another combo for the forward search…

cmack16:02:05

I just looked at my bindings (which are mostly default for cider) and it looks like the method you are looking for is cider-pop-back

cmack16:02:48

regarding 2): if you do C-h a cider-find-var you can see the documentation that tells how to do different window. It appears C-u - M-. or C-u C-u M-. should work