unduly-noted

joined 2 years ago
[–] [email protected] 1 points 2 years 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 2 years ago

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

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

What are you talking about?

[–] [email protected] 1 points 2 years ago

How did you do the number incrementing?

[–] [email protected] 1 points 2 years 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 2 years ago (2 children)

Curious why you prefer killing?

[–] [email protected] 1 points 2 years 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?

 

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?