Re:Emfy: Emacs for You – Quickly set up vanilla Emacs for ed...
by eddieh on Wednesday December 29, 2021 @12:57PM
(#29727507)
I guess I didn't get the memo. I don't see what was wrong with `window-system' as it allowed stuff like `(eq window-system 'mac)' and `(memq window-system '(mac ns x))' which is nice if you're using different OSs/environments and need tailor your config.
[ Parent
| on HN ]
Re:Emfy: Emacs for You – Quickly set up vanilla Emacs for ed...
by profsnuggles on Wednesday December 29, 2021 @01:59PM
(#29728497)
If you are trying to check what OS you are running wouldn't system-type be better? (eq system-type 'darwin) You could be running X on multiple different systems. Although I checked the output on netbsd and openbsd, both return berkeley-unix as the system-type... which isn't quite as helpful. At least I know if I'm on gnu/linux vs a BSD I guess. The docstring helpfully lets me know that a value of gnu means I'm running on Hurd. It also recognizes gnu/kfreebsd apparently because you can't throw a rock without hitting one of those.