Commit Graph

34 Commits

Author SHA1 Message Date
Henrik Lissner
98d2f1de3f
Add set-env! autodef; make :env obsolete 2018-06-15 03:42:01 +02:00
Henrik Lissner
81c465a545
Move OS constants to core/core.el
So it is universally available to all of Doom, rather than excluding
sessions that haven't called doom-initialize interactively.
2018-06-08 13:31:45 +02:00
Henrik Lissner
f8b9cff4aa
Get rid of doom-pre-init-hook 2018-05-28 16:07:11 +02:00
Henrik Lissner
2d2ce3cff9
Fix exec-path/osx-clipboard initializing too early 2018-05-20 00:08:19 +02:00
Henrik Lissner
22e18ad0a6
core-os: remove unnecessary after! wrapping 2018-03-25 03:07:18 -04:00
Henrik Lissner
a94ddd4a58
core-os: correct typo in :env setting #449 2018-03-12 12:41:00 -04:00
Henrik Lissner
738f39d21a
Change how shell env is injected #449
Changes the behavior of the :env setting to fetch the shell variables
immediately on call.
2018-03-02 19:55:05 -05:00
Henrik Lissner
a9cbfc7f4e
New :env setting for pulling shell envvars into MacOS sessions
:env lets you specify what environment variables exec-path-from-shell
should pull in from your shell environment at startup. As such, these
need to be defined at startup. :env is useless post-init.

May address #433
2018-03-01 01:03:03 -05:00
Henrik Lissner
48e605a7ca
Delay exec-path-from-shell & don't omit it after byte-compile
Gives users an opportunity to customize what environment variables
exec-path-from-shell pulls in.

May address #433
2018-03-01 01:03:03 -05:00
Henrik Lissner
cacf13f226
Don't byte-compile exec-path on MacOS 2018-02-28 17:57:30 -05:00
Henrik Lissner
b40924a80b
core-os: add IS-WINDOWS & w32-get-true-file-attributes = nil
First step in a long journey towards Windows support.
2018-02-02 23:45:54 -05:00
Henrik Lissner
805f7e7175
core-os: x-underline-at-descent-line = t 2018-02-01 19:58:44 -05:00
Henrik Lissner
f1c34fba72
core-os: remove unnecessary persistent-soft-store 2017-06-10 11:54:47 +02: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
27bfa14def General refactor + cleanup 2017-06-05 14:23:17 +02:00
Henrik Lissner
4ede35129d core-os: don't use gtk tooltips on linux (ew) 2017-05-16 18:05:39 +02:00
Bryan Gilbert
1af63004ca disable copy on visual state change for BOTH mac and linux 2017-05-09 10:10:13 -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
0c23ff43a4 Add doom-protected-packages for excluding packages from autoremoval 2017-04-11 08:43:26 -04:00
Henrik Lissner
8b0184181d exec-path-from-shell: silence interactive message on startup on OSX 2017-04-04 22:18:02 -04:00
Henrik Lissner
769cf850c9 General comment + README cleanup 2017-03-20 04:24:10 -04:00
Henrik Lissner
c6a61b9b2c core-os: add exec-path failsafe 2017-03-20 04:05:17 -04:00
Henrik Lissner
8aac4b2091 doom/clear-* => doom/clean-* (consistent with makefile tasks) 2017-03-19 23:48:43 -04:00
Henrik Lissner
88454f58ec core-os: don't cache exec-path too aggressively 2017-03-19 22:51:29 -04:00
Henrik Lissner
635c0fdaa7 core-os: add doc comment to exec-path-from-shell 2017-03-17 22:50:28 -04:00
Henrik Lissner
253858303e General cleanup + refactor 2017-02-25 02:11:56 -05:00
Henrik Lissner
33c88d4f82 Revert macros to ...! name convention (elisp doesn't like @...) 2017-02-23 00:06:12 -05:00
Henrik Lissner
72577b823c Add core-os.el 2017-02-20 00:26:07 -05:00
Henrik Lissner
b3c1351fa6 Remove unused core files 2017-02-20 00:23:05 -05:00
Henrik Lissner
50ea98319f Rewrite core libraries (WIP) 2017-01-16 23:15:48 -05:00
Henrik Lissner
65da0e0a9e Add Linux config (mainly for Arch) 2016-10-02 23:34:54 +02:00
Henrik Lissner
19bd579ede Move (x-)?select-enable-clipboard to core-os.el 2016-09-22 13:51:04 +02:00
Henrik Lissner
2dac48fb2b Refactor core-os* 2016-05-24 18:27:02 -04:00
Henrik Lissner
0ef6837648 core.os.el 2016-05-22 23:10:04 -04:00