unduly-noted

joined 1 year ago
[–] [email protected] 1 points 11 months ago (2 children)

Can you clarify what you need? Are you just looking to open a parent or child heading, like C-RET or M-RET but at higher/lower level? Because that's pretty trivial in elisp:

(defun org-insert-child ()
   (interactive)
   (org-insert-heading)
   (org-do-demote))


(defun org-insert-parent ()
   (interactive)
   (org-insert-heading)
   (org-do-promote))
[–] [email protected] 1 points 11 months ago

Oh I see. What do you mean by “dark mode is a myth”?

[–] [email protected] 1 points 11 months ago (2 children)

What are you talking about?

[–] [email protected] 1 points 1 year ago

How did you do the number incrementing?

[–] [email protected] 1 points 1 year ago

Makes sense. I tried to keep my buffer list clean at first, but kinda gave up cause so many things in emacs create buffers

[–] [email protected] 1 points 1 year ago (2 children)

Curious why you prefer killing?

[–] [email protected] 1 points 1 year ago

That's the ticket! Thank you!

 

I'd like magit-status to open full frame, ie a single window. When I hit q to exit, I'd like my previous window configuration to be restored.

What's the best way to do this? Setting the follow var causes it to open full frame, but removes all windows except for one upon exit:

 (setq magit-display-buffer-function
  #'magit-display-buffer-fullframe-status-v1)

I can get to my previous window layout with winner-undo, but I'd like q to do the right thing in this case.

Any thoughts?

[–] [email protected] 1 points 1 year ago

One example is refiling. Sometimes when the subtree moves the whitespace isn't how I'd like. Similar for cutting and moving subtrees.

The specific commands that result in undesirable whitespace aren't important, though. The point is sometimes the whitespace in my org files ends up in an inconsistent state and I would like to be able to just run a command and clean it up.

 

Often times I find doing various commands in org-mode adds/removes whitespace around headings. This can lead to inconsistent whitespace throughout the file. Kind of annoying.

Are there any tools to manage this? Like an auto formatter or something?