e816a1ecac
Load exec-path-from-shell in daemon sessions
...
On MacOS, the daemon is unlikely to run with the correct environment if
launched through launchctl or brew services, so it makes sense to use
exec-path-from-shell there too.
May address #736
2018-07-10 00:32:22 +02:00
0d925cda5e
Load core-os sooner & in all sessions
...
Indirectly fixes set-env! errors when using it from your init files.
2018-06-18 12:04:30 +02:00
68903ae398
Set exec-path-from-shell-debug instead of aliasing
...
Also fixes the defvaralias error that occurs on the latest Emacs (but
only on MacOS).
2018-06-17 21:41:44 +02:00
98d2f1de3f
Add set-env! autodef; make :env obsolete
2018-06-15 03:42:01 +02:00
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
f8b9cff4aa
Get rid of doom-pre-init-hook
2018-05-28 16:07:11 +02:00
2d2ce3cff9
Fix exec-path/osx-clipboard initializing too early
2018-05-20 00:08:19 +02:00
22e18ad0a6
core-os: remove unnecessary after! wrapping
2018-03-25 03:07:18 -04:00
a94ddd4a58
core-os: correct typo in :env setting #449
2018-03-12 12:41:00 -04:00
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
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
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
cacf13f226
Don't byte-compile exec-path on MacOS
2018-02-28 17:57:30 -05:00
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
805f7e7175
core-os: x-underline-at-descent-line = t
2018-02-01 19:58:44 -05:00
f1c34fba72
core-os: remove unnecessary persistent-soft-store
2017-06-10 11:54:47 +02:00
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
27bfa14def
General refactor + cleanup
2017-06-05 14:23:17 +02:00
4ede35129d
core-os: don't use gtk tooltips on linux (ew)
2017-05-16 18:05:39 +02:00
1af63004ca
disable copy on visual state change for BOTH mac and linux
2017-05-09 10:10:13 -04:00
5ae94b765c
PRAISE BE TO THE BYTE COMPILER FOR THY SHARP QUOTES
2017-04-17 02:17:10 -04:00
0c23ff43a4
Add doom-protected-packages for excluding packages from autoremoval
2017-04-11 08:43:26 -04:00
8b0184181d
exec-path-from-shell: silence interactive message on startup on OSX
2017-04-04 22:18:02 -04:00
769cf850c9
General comment + README cleanup
2017-03-20 04:24:10 -04:00
c6a61b9b2c
core-os: add exec-path failsafe
2017-03-20 04:05:17 -04:00
8aac4b2091
doom/clear-* => doom/clean-* (consistent with makefile tasks)
2017-03-19 23:48:43 -04:00
88454f58ec
core-os: don't cache exec-path too aggressively
2017-03-19 22:51:29 -04:00
635c0fdaa7
core-os: add doc comment to exec-path-from-shell
2017-03-17 22:50:28 -04:00
253858303e
General cleanup + refactor
2017-02-25 02:11:56 -05:00
33c88d4f82
Revert macros to ...! name convention (elisp doesn't like @...)
2017-02-23 00:06:12 -05:00
72577b823c
Add core-os.el
2017-02-20 00:26:07 -05:00
b3c1351fa6
Remove unused core files
2017-02-20 00:23:05 -05:00
50ea98319f
Rewrite core libraries (WIP)
2017-01-16 23:15:48 -05:00
65da0e0a9e
Add Linux config (mainly for Arch)
2016-10-02 23:34:54 +02:00
19bd579ede
Move (x-)?select-enable-clipboard to core-os.el
2016-09-22 13:51:04 +02:00
2dac48fb2b
Refactor core-os*
2016-05-24 18:27:02 -04:00
0ef6837648
core.os.el
2016-05-22 23:10:04 -04:00