You might ponder this question while you are taking a drink at the bubbler.
Author: grant
(Elisp) Yet Another Function To Save All File Buffers
(defun help/save-all-file-buffers () "Saves every buffer associated with a file." (interactive) (dolist (buf (buffer-list)) (with-current-buffer buf (when (and (buffer-file-name) (buffer-modified-p)) (save-buffer)))))
(Hardware) Best Inexpensive Monitor Ever
Last year I searched for a monitor with these attributes:
- 23-inch
- Great color and bright from all angles easy for all-day viewing
- Cables: HDMI, DVI, and VGA
- Inexpensive because of the obvious and also the possibility of building a 2×2 monitor grid
The ASUS VS239H-P 23-Inch Full HD 1920×1080 IPS HDMI DVI VGA Back-lit LED Monitor is my winner: it meets all of the criteria.
It is easy to use and looks great. One year old it still is selling well. It is an easy purchase because 8,299 owners ranked it a 4.5/5 so I’m not alone here.
Now join the club.
(macOS) Open A Finder Window By Pressing Option(alt)-Command(⌘)-Space
Save a few mouse drags and clicks to open Finder by pressing Option(alt)-Command(⌘)-Space.
It is even faster than hitting Control-Space to start Spotlight.
Chai Pro Tools: Ginger Grater And Peeler
- A fine cheese grater and the side of spoon work great, but
- The ginger grater gets all of the juice without any of the pulp
- The peeler handles crevices without destroying them like a spoon does
- The pro tools (aka birthday gifts)
Avoid Most Bash Errors Pretty Much By Quoting Everything, And More Best Practices
This page shows common errors that Bash programmers make. These examples are all flawed in some way.
You will save yourself from many of these pitfalls if you simply always use quotes and never use WordSplitting for any reason! Word splitting is a broken legacy misfeature inherited from the Bourne shell that’s stuck on by default if you don’t quote expansions. The vast majority of pitfalls are in some way related to unquoted expansions, and the ensuing word splitting and globbing that result.
All of us have fallen into one of these pits.
Why not use Python instead? 🙂
Oh yea, non-interactive shells
?.
More on Quotes and Word Splitting.
ShellCheck, A Static Analysis Tool For Shell Scripts
- Bash Programming Rules
- Don’t
- If you must then frequently run ShellCheck
Here are my questionable credentials to make this claim.
emacs-25.3-mac-6.7 Is Released
emacs-25.3-mac-6.7
Is Released!
Also railwaycat/emacsmacport/emacs-mac
.
(Go Lang) Do You Dare Enable Go Vet Shadow?
go vet shadow warns of variable shadowing. That is where you declare a variable with the same name, in the same scope.
Do you dare enable it?
Anybody Miss The Kill-Ring When They Use Their Host OS
Here “Host OS” means the operating system on which you run Emacs.
When I use my host OS by muscle memory I try to use the Kill Ring just like I do in Emacs and then I get a painful surprise: I have to copy everything that I need somewhere else and then copy it back. Yuck. Can you recommend a solution for this on macOS?
browse-kill-ring makes the kill ring really easy to use.