Commit graph

13 commits

Author SHA1 Message Date
Henrik Lissner
659f7bfc71
refactor!: deprecate IS-* OS constants
BREAKING CHANGE: This deprecates the IS-(MAC|WINDOWS|LINUX|BSD) family
of global constants in favor of a native `featurep` check:

  IS-MAC      ->  (featurep :system 'macos)
  IS-WINDOWS  ->  (featurep :system 'windows)
  IS-LINUX    ->  (featurep :system 'linux)
  IS-BSD      ->  (featurep :system 'bsd)

The constants will stick around until the v3 release so folks can still
use it -- and there are still some modules that use it, but I'll phase
those uses out gradually.

Fix: #7479
2024-02-04 17:54:29 -05:00
Ellis Kenyő
f1e793405d fix(macos): only use trash on local hosts
Fix: #6804
2022-09-30 22:42:46 +02:00
Henrik Lissner
41051f4761
fix: disable UI elements earlier
Moves this from doom-ui to doom-start, since there is more savings to be
had if this is done early.

Also moves the menu-bar fix for macos out of the :os macos module into
doom-start, because it is a fix (and for a Doom optimization) and not a
feature, so it shouldn't be behind a module.
2022-09-16 01:14:23 +02:00
Henrik Lissner
6ddaed5cdd
nit: comment revision and formatting
For clarity, to enforce conventions, and explain the unexplained.
2022-09-16 01:14:22 +02:00
Henrik Lissner
ce65645fb8 Minor refactors & comment revision 2021-03-27 18:27:19 -04:00
Henrik Lissner
638c980163 Revert 27d3e73
Some users may not be using a theme (*shudder*), in which case
ns-auto-titlebar-mode never kicks in.

That said, this "fix" didn't fix the targeted issue anyhow.
2021-03-06 12:12:01 -05:00
Henrik Lissner
27d3e73fb7 os/macos: activate ns-auto-titlebar-mode later
If triggered too early, it may read the wrong frame background mode and
you'll get dark text on a dark titlebar in MacOS dark mode (or light
text on a light titlebar in light mode).
2021-03-06 10:24:38 -05:00
Henrik Lissner
f4ec42ae5c
Move :tools macos to :os macos 2020-08-20 02:14:32 -04:00
Henrik Lissner
8122c9f653 Remove :emacs :fun and :os (moved) 2017-02-20 00:26:08 -05:00
Henrik Lissner
cf927acc07 @use-package => @def-package 2017-02-20 00:26:06 -05:00
Henrik Lissner
6c06aa0ce7 Macros now prefixed with @, instead of suffixed with ! 2017-02-20 00:26:06 -05:00
Henrik Lissner
bc402868a6 Add provide's to module config.el files + fix module header comments 2017-02-20 00:23:08 -05:00
Henrik Lissner
80735a530b Add modules/os/macos 2017-02-20 00:23:04 -05:00