Commit graph

19 commits

Author SHA1 Message Date
Henrik Lissner
c78a3dc1f5
fix(lib): unknown type: consp on Emacs 29+
This was removed from cl-lib's known datatypes (in favor of "cons") in
Emacs 29.
2022-06-10 13:12:22 +02:00
Henrik Lissner
e76f5388be fix: doom-system-cpus not handling int values
ce31880 did not fix doom-system-cpus on msys2 builds because the
function didn't handle integer return values from any of its code
paths (which formerly returned strings or lists).

Ref ce31880ccc
Fix #5347
2021-08-06 03:44:34 -04:00
Henrik Lissner
ce31880ccc fix: doom-system-cpus returning 1 on msys2 build
Fix #5347
2021-08-06 03:08:33 -04:00
Henrik Lissner
6d2c6b44fa Refactor comp-effective-async-max-jobs advice
We only need this magic in CLI sessions. It's better to only use half
the CPUs in interactive sessions (if the user has enabled
comp-deferred-compilation for some reason).

Fixes #5042
2021-05-12 14:52:00 -04:00
Henrik Lissner
3bb271738a Fix void-variable disto on M-x doom/info 2021-03-04 16:10:45 -05:00
Henrik Lissner
8ccba925dd Fix parsing issue in doom-system-distro{,-version}
No guarantee the values in /etc/os-release are quoted.

Also, eliminate the code paths where these functions return nil.
2021-03-02 11:59:55 -05:00
Henrik Lissner
c5e3f4d632 New autoload/system.el core library 2021-03-01 22:27:17 -05:00
Henrik Lissner
21f8b6933b
Remove unused minibuffer/system libraries
They aren't necessary anymore
2018-03-23 02:37:15 -04:00
Henrik Lissner
ebd82024e5
Fix doom-fetch & remove --depth 1 2017-12-23 01:47:27 -05:00
Henrik Lissner
c7254e7bdc
Major optimization refactor, across the board
+ enable lexical-scope everywhere (lexical-binding = t): ~5-10% faster
  startup; ~5-20% general boost
+ reduce consing, function calls & garbage collection by preferring
  cl-loop & dolist over lambda closures (for mapc[ar], add-hook, and
  various cl-lib filter/map/reduce functions) -- where possible
+ prefer functions with dedicated opcodes, like assq (see byte-defop's
  in bytecomp.el for more)
+ prefer pcase & cond (faster) over cl-case
+ general refactor for code readability
+ ensure naming & style conventions are adhered to
+ appease byte-compiler by marking unused variables with underscore
+ defer minor mode activation to after-init, emacs-startup or
  window-setup hooks; a customization opportunity for users + ensures
  custom functionality won't interfere with startup.
2017-06-09 00:47:45 +02:00
Henrik Lissner
acca0a86c7 Redesign doom-system-os 2017-05-03 22:03:08 +02:00
Henrik Lissner
5e2c483923 core/autoload/system: rewrite doom-fetch (factor out s.el dependency) 2017-04-17 02:19:37 -04:00
Henrik Lissner
5ae94b765c PRAISE BE TO THE BYTE COMPILER FOR THY SHARP QUOTES 2017-04-17 02:17:10 -04:00
Henrik Lissner
2a377b44f1 Use s.el instead of subr-x string funcs 2017-03-25 01:45:23 -04:00
Henrik Lissner
d0b64860e1 Fix doom-sh/doom-sudo + bootstraps 2017-03-23 02:13:11 -04:00
Henrik Lissner
1677844fd6 Enhance core/autoload/system library 2017-03-20 21:15:18 -04:00
Henrik Lissner
804aba93f5 Implement bootstrap functionality + make bootstrap (WIP) 2017-03-20 02:45:39 -04:00
Henrik Lissner
fd93e705b4 General cleanup, refactor and documentation 2017-02-21 03:45:24 -05:00
Henrik Lissner
35bcc411ba Add core/autoload/system.el (WIP) 2017-02-20 13:40:42 -05:00