Commit graph

38 commits

Author SHA1 Message Date
Miciah Masters
a55df96caa [core] Environment variable caching fixes
Fix several problems with environment variable caching.

First, if a shell printed extra output besides the command output,
spacemacs//init-spacemacs-env included the extra output in .spacemacs.env.
For example, a login shell could print a motd, which would be erroneously
included in .spacemacs.env.  To avoid this, spacemacs//init-spacemacs-env
now redirects the command output to a temporary file and then reads the
file.

Second, spacemacs//init-spacemacs-env sorted lines using the entire
"name=value" string for each line whereas the correct behavior is to sort
only on the "name" part.  To fix this, spacemacs//init-spacemacs-env now
uses sort-regexp-fields with an appropriate regexp to match the "name" part
and ignore the "value" part.

Third, although load-env-vars-set-env added all PATH settings in
.spacemacs.env to exec-path, it set PATH to the first PATH setting in
.spacemacs.env.  Now load-env-vars-set-env sets PATH from exec-path so that
it will reflect that combined value.

Fourth, load-env-vars-set-env set exec-path and PATH without consideration
to the operating system's directory separator.  Now load-env-vars-set-env
converts backslashes to forward slashes when adding path entries to
exec-path and converts forward slashes to backslashes when setting PATH on
platforms that use backslashes.

Fifth, load-env-vars-set-env now normalizes exec-path by deleting trailing
slashes from path entries, converting drive letters in path entries to
lower-case, and deleting duplicate path entries.

Sixth, Spacemacs no longer uses exec-path-from-shell, but a changelog entry
said that it did.  This commit corrects the changelog entry, deletes
another outdated entry, and merges two entries that covered the same
functionality.

Finally, this commit corrects several typos and tries to improve wording in
several docstrings, messages, and comments.

* CHANGELOG.develop: Delete mention of exec-path-from-shell, which
Spacemacs no longer uses by default.  Delete mention of
dotspacemacs-import-env-vars-from-shell and
dotspacemacs-import-env-vars-shell-file-name, which no longer exist.
Merge entries about synchronizing environment variables.
* core/core-env.el (spacemacs-ignored-environment-variables): Fix typos and
mention that the strings are regexps that are matched against the names of
environment variables.
(spacemacs//init-spacemacs-env): Use a temporary file rather than standard
output in order to avoid getting motd and other noise.  Sort lines using
only environment variables' names, not their values.  Better describe the
behavior with respect to spacemacs-ignored-environment-variables, duplicate
settings, and PATH.  Try to make wording clearer.
(spacemacs/edit-env): Fix typos in the docstring.
* core/libs/load-env-vars.el (load-env-vars-set-env): Fix typos in the
docstring.  Delete trailing slashes from path entries in exec-path, convert
drive letters to lower-case, delete duplicate path entries, and convert
backslashes to forward slashes when setting exec-path.  Set PATH from
exec-path, converting forward slashes to backslashes on platforms that use
backslashes.
2019-11-03 22:25:05 +01:00
smile13241324
421feed1f8 Update spacemacs-theme to remove conflicts with newer themes 2019-08-02 20:20:53 +02:00
Dieter Komendera
b1a958a54c Update quelpa.el to 2c17c4f9 2019-01-20 15:59:04 +02:00
nashamri
5d5a8a5588 Latest theme updates
Summary:

- Update diff and ediff colors (thanks @duianto).
- Support hl-todo mode.
2019-01-20 15:57:28 +02:00
Alexander Miller
e7d13da61d Make treemacs the default file browser. 2019-01-20 14:31:36 +02:00
bmag
745e868b07 update spacemacs theme
Update spacemacs theme to commit c162ad13 upstream.

c162ad13e4
2018-11-09 20:20:26 +02:00
bmag
642b811882 core: update Quelpa to last version 2018-11-09 20:18:47 +02:00
Compro-Prasad
9662279838 Fix overflow of line in page-break-lines-mode when using line number
This is picked up from

fd3b7e38ad/page-break-lines.el
2018-07-24 00:11:39 +03:00
syl20bnr
d5f5b5ab7e core: fix parsing of env vars with empty value 2018-07-04 03:42:28 -04:00
syl20bnr
21551b6995 core: fix parsing of env vars
Was working on Windows but not macOS.. weird
2018-07-04 03:08:52 -04:00
syl20bnr
d0401f8640 core: allow spaces in env vars values as well as empty values 2018-07-04 02:34:10 -04:00
syl20bnr
a013d86874 core: update environment variables management
* add new dotfile function `dotspacemacs/user-env`
* add ignored env. vars with variable spacemacs-ignored-environment-variables
* ignore env vars: SSH_AUTH_SOCK and DBUS_SESSION_BUS_ADDRESS
* update documentation in DOCUMENTATION.org
* update .spacemacs.template with new function
* rename environment file from spacemacs.env to .spacemacs.env
* move location of .spacemacs.env file to home or dotdirectory
* add a header to the generated .spacemacs.env file to explain what it is
* make SPC f e e fallbacks to the function dotspacemacs/user-env if the user
  manages the env var by themselves
* make SPC f e E call the new function dotspacemacs/user-env
* sort environment variables in .spacemacs.env file
2018-07-03 01:25:28 -04:00
syl20bnr
6220ace290 core: rework environment variables and PATH management
See updated DOCUMENTATION.org and FAQ.org for more info.

* add core-env.el
* add library load-env-vars.el
* add bootstrap package dotenv-mode.el
* remove spacemacs-environment from bootstrap layer
* remove dotspacemacs variable dotspacemacs-import-env-vars-from-shell
* remove dotspacemacs variable dotspacemacs-improt-env-vars-shell-file-name
* add new key binding SPC f e e to open spacemacs.env file
* add new key binding SPC f e E to reload environment variable from env file
* add new key binding SPC f e C-e to re-initialize the env file from shell.
2018-06-25 02:55:28 -04:00
Nasser Alshammari
8da66b5e37 Latest updates of spacemacs-theme (#10810) 2018-06-05 16:47:24 -04:00
syl20bnr
2be6e4e338 core: update Quelpa to last version
Fixes #10653
2018-05-07 01:05:41 -04:00
nashamri
abda28419a Latest updates for spacemacs-theme 2018-02-24 19:49:38 -05:00
syl20bnr
6438d986ab core: update quelpa library 2018-01-10 10:38:33 -05:00
syl20bnr
46c5dfa4a7 cl-loop instead of loop 2018-01-06 21:38:13 -05:00
nashamri
f50626c353 Latest updates of spacemacs-theme 2017-12-23 17:28:31 +02:00
nashamri
d42ec614f2 spacemacs-theme support for treemacs mode 2017-12-01 18:39:12 +02:00
nashamri
466d6e9b2e Update with the latest changes of spacemacs-theme 2017-10-21 14:45:45 +03:00
nashamri
c2fe26dd83 Latest spacemacs-theme updates 2017-07-17 20:18:32 +01:00
nashamri
8d88a2ba1f Little update to spacemacs-theme 2017-06-15 13:24:31 +02:00
Robert O'Connor
e9ff9f09c6 Remove trailing whitespace from all files 2017-03-26 13:06:43 -04:00
bmag
e624e8f0fa Update spacemacs-theme
Updated to commit:
80f40d21ff
2017-03-13 21:13:37 +02:00
syl20bnr
9ac779a2e4 core: import spacemacs-theme into libs
Distribute spacemacs-theme with Spacemacs so we don't need to download the
package of the theme at startup. It was delaying the display of the home buffer.

Now Spacemacs fallback to spacemacs-dark theme if the user theme cannot be
applied. Spacemacs then tries to install and reapply the user theme. If
successful, at the subsequent startups the user theme is applied right away
instead of spacemacs-dark. If the installation failed then we display a warning
informing the user and suggesting some actions.

There is now no package left to be installed manually at the start of Spacemacs.
2017-01-25 00:30:31 -05:00
syl20bnr
973f6fe5ae core: import ido-vertical-mode into core/libs
It provides more intuitive way to display the wizard.
2017-01-23 23:52:57 -05:00
syl20bnr
1afa0f8faa core: import quelpa and package-build into core/libs
Remove the need to fetch these libs from the internet.
2017-01-23 23:52:57 -05:00
syl20bnr
f3e50195d7 core: add footer in home buffer 2016-06-05 00:19:18 -04:00
syl20bnr
5b757eb090 core: remove corelv
Since hydra is now a bootstrap package.
2016-01-26 02:05:32 -05:00
syl20bnr
741bd0375f core: remove request.el dependency 2015-12-07 23:31:30 -05:00
syl20bnr
d822241739 core: use request.el to check elpa archive availability
Add request.el to core/libs
Refactor package.el initialization in configuration-layer.el
Cosmetic improvements to loading messages
Remove redefinition of package-refresh-packages
2015-12-02 23:25:00 -05:00
syl20bnr
4326ca9534 core: update LV with last version from Hydra 2015-10-18 23:31:57 -04:00
Török Edwin
b06b52d10a avoid conflict with hydra's lv.el
fixes #1463
2015-05-27 23:52:15 -04:00
syl20bnr
15f2ea403f Correctly put the point on the first line of lv 2015-02-21 00:56:37 -05:00
syl20bnr
9088e282d5 Fix side effect with golden-ratio and lv 2015-02-20 23:25:06 -05:00
syl20bnr
0a5442e44a Add hydra lv.el to display micro-state in a window 2015-02-20 00:49:47 -05:00
syl20bnr
a6850fc41d For consistency, use plural form for core directories 2015-01-22 23:03:20 -05:00