My old Magit setup left a bunch of buffers around that I didn’t need anymore. Here is the posted solution to close them automatically:
(defun help/magit-kill-buffers ()
"Restore window configuration and kill all Magit buffers.
Attribution: URL `https://manuel-uberti.github.io/emacs/2018/02/17/magit-bury-buffer/'"
(let ((buffers (magit-mode-get-buffers)))
(mapc #'kill-buffer buffers)))
(bind-key "q" #'help/magit-kill-buffers magit-status-mode-map)
I can never remember what parameters I want for
ls so I made an alias for it. I still couldn’t remember them so I copy and pasted the documentation into a literate document and tangle that into a function to do what I want:
Continue reading “(Emacs+Org-Mode) A Literate LS”
When I can’t figure out how to write a function to do what I want then I record a macro of what I want to do and then “decompile” it to Elisp using elmacro. This is a super-power package if you want to figure out how something works.
If you want to lock and unlock your files from the command line using Finder instead of using
chmod there here are two aliases to do it:
alias flock='chflags -R uchg'
alias funlock='chflags -R nouchg'
You’ve got Unicode and Emacs so take advantage of the 3 kinds of dashes available to every writer. Here is how with a little detail you might find pretty useful totally unrelated to dashes!
Continue reading “(Emacs+Org-Mode) Don't Dash Your Hopes Of Utilizing Dashes”
Never seen it before now watching a flat bottom ditch get created here.
It is so interesting to see even without knowing the terms and approach you can understand some of it by the context.
Definitely worth 14m of your time!
PWB/UNIX is the first UNIX with
- The First Source code control ever
- A really nice shell
Bet it was a lot of fun.
After avoiding migrating from Ido to Ivy for years I put in the time today. Long story short it was simple, fast, and easy. Here is the micro version of what it took:
Continue reading “(Emacs+Org-Mode) Migrate From Ido To Ivy In One Quick Step”
Never had the want to export to a calendar from Org but here are what looks like three pretty nice ways to do it.
BiTeX is something I’ve learned as little about as possible doing just enough to “make it work right”. Glad to know about this for when I don’t know how to do that.