Commit Graph

240 Commits

Author SHA1 Message Date
Maxi Wolff e71a68633b [core] Hotfix org version mismatch during startup
this is caused by the home buffer loading build-in
org which conflicts with elpa org.

We actually want to use elpa org exclusively so we have
to make sure to redraw the spacemacs buffer only
after we have finished loading the layers.

In addition latest org version 9.6 and the behaviour
on emacs 29 has also changed so that org is autoloaded
much earlier than before. This is what actually did
make this bug show up.

However this behaviour was in place since a long time
and could be the cause for a lot of unreproducible
bugs as the actual conflicts are dependent on the
distribution specific emacs version.

Known issues:
This is a hotfix it solves the original issue but
introduces a new, hopefully less dangerous issue,
this is for now the start buffer is not configurable.

I will add a follow up PR to remove this issue however
I think this is far less annoying than a set of random
conflicts caused by loading elisp files from different org
sources.
2023-01-03 08:01:48 +01:00
Maxi Wolff b28d65b7aa Load use-package extensions before usual layer loading 2022-12-14 13:37:27 +01:00
Maxi Wolff 52deec4bb1 Add temporary fix for eager-macro-expansion of use-package
this should remove the issue for most users.
This fix has been taken from #15144.
2022-12-14 12:09:57 +01:00
Lin Sun ecb87b53f7
core/core-load-path.el: auto locate spacemacs-start-directory 2022-12-01 23:41:42 +01:00
Codruț Constantin Gușoi 913c8b0f9f Disable incompatible optimisation in init.el
Refs: https://github.com/syl20bnr/spacemacs/issues/11585
2022-08-14 16:52:13 +02:00
Lin Sun c5c69ce239 core: more precise directory byte-compile status for "core/libs/" folder 2022-08-11 08:21:22 +02:00
Arif Er 00f9ab19ac chore: update copyright headers to 2022
The script used to identify and update the change is added into the GitHub
workflows script directory. A workflow action can be created to trigger the
script to update the headers on the first of every new year. Possibly a task for
a consequent PR.
2022-06-03 17:32:20 +02:00
Lin Sun 0206197b22 [core] less ".el" suffix for support both *.el and *.elc 2022-01-03 23:02:43 +01:00
syl20bnr 97cd83e169 Apply GPLv3 terms explicitly to all elisp files 2021-03-25 22:59:32 -04:00
syl20bnr d55a9e2e67 Update header for year 2021 2021-03-25 22:59:32 -04:00
JAremko 7238eb03e8 Better .elc cleanup 2021-02-11 16:08:29 +02:00
JAremko 88980363b6 Recompile Spacemacs core .elc files when Emacs version changes 2021-01-31 13:32:06 +02:00
JAremko 9eb11bb7a2 refactor bytecomp 2021-01-31 13:32:06 +02:00
JAremko 370798262e Make sure that some core files never byte compiled 2021-01-31 13:32:06 +02:00
JAremko 5182a450e6 Rework byte recompile of built-in libs 2021-01-26 12:54:03 +02:00
Robert O'Connor 82ba73a1c0
update copyright to 2020 2020-09-23 21:25:01 +02:00
syl20bnr f21abcdcf3 [core] Rewrite of the stable ELPA initialization code
* new function configuration-layer//stable-elpa-disable-repository
* new function configuration-layer//stable-elpa-update-version-file
* new function configuration-layer//stable-elpa-delete-temporary-files
* new function configuration-layer//stable-elpa-ask-to-continue
* new function configuration-layer//stable-elpa-verify-archive
* new function configuration-layer//stable-elpa-disable-repository
* rename function configuration-layer/stable-elpa-download-tarball to
                  configuration-layer//stable-elpa-download-tarball
* new function configuration-layer/stable-elpa-init
* make the function configuration-layer/stable-elpa-version interactive

configuration-layer/stable-elpa-init is called from init.el.
This function then calls the other new function in more clear fashion than the
previous complicated configuration-layer/stable-elpa-download-tarball

The users are now prompt if they want to install the stable ELPA repository when
the verification of the archive failed.
2019-08-23 00:51:21 -04:00
syl20bnr b7266b38b5 [dump] Add functions to save and restore load-path 2019-07-26 23:00:47 -04:00
syl20bnr 32f6f07f95 [dump] Move more dump specific init code to dump-init.el 2019-07-26 22:51:58 -04:00
syl20bnr 244ae42d6a [dump] Add new macro to delay execution after dump is loaded
New macro spacemacs|unless-dumping-and-eval-after-loaded-dump
2019-07-26 22:45:12 -04:00
syl20bnr 0c39f63c66 [dump] Move some code to dump-init.el 2019-07-26 22:44:11 -04:00
Carl Lange d92da11bcd Allow setting of server-socket-dir in .spacemacs 2018-06-14 00:42:13 -04:00
syl20bnr ac247396f3 core: avoid unecessary output in message buffer at startup
Unless in debug mode.
2018-06-10 02:49:51 -04:00
syl20bnr d5ebe73e68 dump: reactivate server start in init.el but nut while dumping 2018-05-20 04:43:43 -04:00
syl20bnr 14b71afb42 dump: auto-dump emacs on load if layer list has changed
* rename core-dump.el to core-dumper.el
* add function spacemacs/dump-emacs
* explicitly load core-dumper.el file in init.el
* asynchronously dump emacs if layer list has changed, see special buffer
  *spacemacs-dumper* for the output.
2018-05-20 03:58:48 -04:00
syl20bnr 87dc5f100c dump: add support for winner
pdump cannot dump window configurations so we make sure to activate winner
outside of the dump phase
2018-05-20 03:58:48 -04:00
syl20bnr 2580e43c66 Add support for dumping Spacemacs
Create dump with:

   ./emacs --batch -l ~/.emacs.d/dump-init.el \
           -eval '(dump-emacs-portable "spacemacs.pdmp")'

Load dump with:

   ./emacs --dump-file=spacemacs.pdmp

User can require/load additional libraries in new dotfile function:

   dotspacemacs/user-load
2018-05-20 03:57:54 -04:00
Aaron Jensen 997504d331 core: wrap init with file-name-handler-alist nil to speed up init
See https://github.com/hlissner/doom-emacs/wiki/FAQ#how-is-dooms-startup-so-fast
and https://www.reddit.com/r/emacs/comments/3kqt6e/2_easy_little_known_steps_to_speed_up_emacs_start/
2018-02-24 19:49:39 -05:00
Tad Fisher 662b73282c Make the Emacs server optional
Add `dotspacemacs-enable-server`, which if non-nil prevents Spacemacs from
calling `(server-start)` at init.
2018-02-24 19:49:39 -05:00
syl20bnr 72c89df995 core: add dotspacemacs-gc-cons variable 2018-01-28 23:22:38 -05:00
Aaron Jensen 7f558084f1 Increase gc-cons-threshold during startup
This should reduce startup time on some systems.
2018-01-28 23:09:50 -05:00
syl20bnr 326965d4ce Happy New Year 2018! 2018-01-04 02:00:25 -05:00
syl20bnr 36c15b79f6 core: move versions to new file core/core-versions.el
As we need to have version files available in tests without loading the whole
init.el file.
2017-11-12 10:04:12 -05:00
syl20bnr 65d5e42b8e core: add support for stable ELPA repository hosted on GitHub
Use the official spacelpa ELPA repository.
address: https://github.com/syl20bnr/spacelpa

ELPA repository configuration is now in a file called .lock at the root of the
git repository. Its goal is to setup the ELPA repositories for a given branch
and it should not be modified! The philosophy of Spacemacs is to never fork the
git repository and this lock file has been put in the repo on purpose.

Only the master branch will have a .lock file that points to spacelpa, the
develop branch won't use the stable ELPA repository and will continue to behave
like it always did.

BUT for testing purpose and until the first major version of Spacemacs that uses
the stable ELPA repo is released I push a .lock file to develop branch that
points to spacelpa.

I understand that some people can be annoyed by this so the variable
configuration-layer--elpa-archives can be overriden by putting a setq in your
dotfile in the user-init function like this:

  (setq configuration-layer--elpa-archives
        '(("melpa"    . "melpa.org/packages/")
          ("org"      . "orgmode.org/elpa/")
          ("gnu"      . "elpa.gnu.org/packages/")))
2017-10-29 01:20:25 -04:00
syl20bnr 099bfcb0d9 Bump minimal version of Emacs to 25.1
This is required because we need the package.el elpa archive priority feature
(variable: package-archive-priorities)
2017-10-29 00:25:45 -04:00
syl20bnr c73c4bc1ea Bump version of Spacemacs to 0.300 2017-10-29 00:25:26 -04:00
syl20bnr cc0d8cafb2 core: rename configuration-layer/sync to configuration-layer/load
Replace the optional argument `no-install` by a global variable named
`spacemacs-sync-packages`.
Rename the hooks to reflect the renaming of the function.
Rename the flag `--no-sync` to the more explicit `--no-package-sync`
2017-07-01 10:54:37 -04:00
ZarsBranchkin 1e340f62f3 add --skip-sync startup flag
This adds a new startup flag `--skip-sync`. It will force spacemacs to skip
package synchonization. This can be useful in cases when you're working under
poor or restrictive network.

Thanks, @zaript, for this idea!
2017-07-01 09:54:21 -04:00
syl20bnr 2d8d3046c6 Bump version to 0.200.9 and add release note 2017-04-06 23:10:42 -04:00
syl20bnr a9edb124e8 Bump version to 0.200.8 and update changelog 2017-04-02 01:24:59 -04:00
deb0ch 518f33aadf throw a real error if emacs version is too old
Many people (including me) were confused when trying to install Spacemacs on an
outdated Emacs. A message was issued, but honestly nobody thinks of going to see
the *Messages* buffer when a perfeclty normal vanilla Emacs starts up,
especially not beginners.

This way, an error is visible and users can take corrective actions.
2017-03-04 10:06:16 +02:00
syl20bnr fb27ede558 Bump year in copyright headers
Happy New Year 2017!
2017-01-05 23:08:17 -05:00
syl20bnr e85f03080b Bump version to 0.200.7 and update CHANGELOG.org 2017-01-02 11:14:36 -05:00
syl20bnr fd2bcf0830 Bump version to 0.200.6 and update CHANGELOG.org 2017-01-02 01:41:35 -05:00
syl20bnr 2c4cd4dd42 core: Revert dotfile installation time and fix editing style bug
Force a call to dotspacemacs/init after dotfile installtion.
Move call to (spacemacs/maybe-install-dotfile) to spacemacs/init.
2016-11-07 10:40:39 -05:00
Eivind Fonn 24c3859d1e Install dotfile earlier 2016-11-07 10:07:28 -05:00
deb0ch 67c5b2cb01 home-buffer: adapt home buffer notes toggling to responsiveness 2016-11-07 09:14:13 -05:00
Eivind Fonn 3785a1c7b5 Update changelog and bump version to 0.200.5 2016-11-03 15:24:06 +01:00
Eivind Fonn cdcf707027 Bump version to 0.200.4 2016-10-26 10:56:57 +02:00
syl20bnr 3aaff153bc Update change logs and bump version to 0.200.3 2016-10-18 22:52:54 -04:00