59 Commits

Author SHA1 Message Date
29b19412f6 dev: ignore .DS_Store at top level 2023-11-29 23:18:26 -05:00
f99cf0ccc8 feat(cli): introduce DOOMPROFILELOAD{FILE,PATH} envvars
- Adds $DOOMPROFILELOADFILE: Controls where to read and write the
  profile loader. Changing this may be helpful for users on nix/guix,
  who have deployed Doom to a read-only location. This sets
  `doom-profile-load-file`.
- Changed profile load file's default location (used to be
  $EMACSDIR/profiles/init.el, is now $EMACSDIR/profiles/load.el). The
  gitignore was updated to reflect this.
- Adds $DOOMPROFILELOADPATH: A colon-delimited list of profile config
  files and directories (semi-colon on Windows) which dictate what Doom
  reads in order to discover your profiles. Config files are required to
  have an *.el extension. This sets `doom-profile-load-path`.
- Changes the nomenclature around this loader script. I used to refer to
  it as the profile bootstrapper. I'll now refer to it as the profile
  load file, and I've renamed `doom-profiles-bootstrap-file` to
  `doom-profile-load-file` to reflect this.
- The variables `doom-profile-dirs` and `doom-profile-config-files` were
  merged into doom-profile-load-path.
- Both envvars have also been documented in `doom help` (and
  $DOOMPROFILE's has been updated).

Ref: #6794
2022-09-18 00:28:13 +02:00
b914830403 refactor!: complete profile gen and init systems
BREAKING CHANGE: This commit makes three breaking changes:

- Doom now fully and dynamically generates (and byte-compiles) your
  profile and its init files, which includes your autoloads, loading
  your init files and modules, and then some. This replaces
  doom-initialize-modules, doom-initialize-core-modules, and
  doom-module-loader, which have been removed. This has also improved
  startup time by a bit, but if you use these functions in your CLIs,
  for instance, this will be a breaking change.
- `doom sync` is now required for Doom to see your profiles (and must be
  run whenever you change them, or when you up/downgrade Emacs across
  major versions).
- $DOOMDIR/init.el is now read much earlier than it used to be. Before
  any of doom-{ui,keybinds,editor,projects}, before any autoloads are
  loaded, and before your load-path has been populated with your
  packages. It now runs in the context of early-init.el, giving users
  freer range over what they can affect, but a more minimalistic
  environment to do it in.

  If you must have some logic run when all that is set up, add it to one
  of the module hooks added in e08f68b or 283308a.

This also poses a significant change to Doom's load order (see the
commentary change in lib/doom.el), along with the following (non
breaking) changes:

1. Adds a new `doom profiles sync` command. This will forcibly resync
   your profiles, while `doom sync` will only do so if your profiles
   have changed.
2. Doom now fully and dynamically generates (and byte-compiles) your
   user-init-file, which includes loading all your init files, modules,
   and custom-file. This replaces the job of doom-initialize-modules,
   doom-initialize-core-modules, and doom-module-loader, which have been
   removed. This has also improved startup time by a bit.
3. Defines new doom-state-dir variable, though not used yet (saving that
   and the other breaking changes for the 3.0 release).
4. Redesigns profile directory variables (doom-profile-*-dir) to prepare
   for future XDG-compliance.
5. Removed unused/unimportant profile variables in doom.el.
6. Added lisp/doom-profiles.el. It's hardly feature complete, but it's
   enough to power the system as it is now.
7. Updates the "load order" commentary in doom.el to reflect these
   changes.
2022-09-16 01:14:23 +02:00
bd989d16f0 tweak: prep gitignore for v3
- Ignore generated profiles
- Ignore /{init,config,packages}.el, in case the user wants to use
  $EMACSDIR and their $DOOMDIR.
- Cast a wider net for auto-generated files (usually made when launching
  sandboxes, but this will happen less as the sandbox develops).
2022-07-27 13:33:34 +02:00
730c3b63ed dev: gitignore .DS_store 2021-12-12 22:43:40 +01:00
8e4381f0cf fix: gitignore 'places' and 'transient/' in $EMACSDIR
Fix #5434
2021-09-11 12:54:21 +00:00
38e2066b9c ignore extension installed by lang/dart and recover behaviour of +vterm/here
1. lang/dart installs extension to ~/.emacs.d/.extension/vscode/Dart-Code.Dart-Code/.
2. emacs-libvterm makes +vterm/here not open new vterm buffer any more
   due to commit: c2c2c8afb9
2021-04-02 22:53:07 +08:00
afde833ae8 Clean up gitignore 2021-02-21 14:44:59 -05:00
c6b80a598e Un-ignore .gitignore & .github 2020-11-16 20:11:23 -05:00
e1a4f07aab Rewrite .gitignore file 2020-10-05 20:55:09 -04:00
603a11569b Ignore dotfiles in root
Closes #3947
2020-10-04 17:05:46 -04:00
6fef21c3d6 Git ignore nix build result symlinks 2020-08-21 15:49:38 -04:00
a78c3973b2 Add server/ to gitignore #3324 2020-07-24 01:49:59 -04:00
911673fbb9 Add test/.local*/ to gitignore
Created by nix files in test/
2020-01-09 22:56:26 -05:00
195dfda045 Minor refactors & comment revision 2020-01-02 21:16:02 -05:00
bb425a2e65 Add .dap-breakpoints & .extension/ to gitignore #2273 2019-12-30 05:31:55 -05:00
99d327c210 Change .gitignore to exclude "modules/private" when attached as symlink. 2018-12-25 02:36:36 +04:00
e73e28a360 Add .directory to .gitignore #841 2018-08-27 21:33:00 +02:00
4448f2d920 Remove redundant .cask/ entry in gitignore 2018-07-14 23:16:39 +02:00
8c688da586 Add Cask generated folders to gitignore 2018-07-05 17:09:40 +02:00
2c0675a8dd Remove main init.el from gitignore 2018-04-03 19:48:11 -04:00
2da03a67ba Add .yas-compiled-snippets.el to gitignore 2018-03-28 00:34:05 -04:00
79f3f5dbb0 Add modules/private to gitignore 2017-12-23 22:14:22 -05:00
f1f86b93ca Ignore only root init.el 2017-06-13 11:38:02 +03:00
61f5d09383 Add .cask to gitignore 2017-06-03 12:05:43 +02:00
a4aa32986f Add .tern-port to gitignore 2017-04-08 03:43:55 -04:00
68389d21cd Add network-security.data to project gitignore 2017-04-08 01:35:36 -04:00
03df44381d Update gitignore 2017-02-20 00:26:48 -05:00
38a750d4c5 Update .gitignore: ignore .local 2017-02-20 00:23:04 -05:00
62ce9115e5 init.el => init.example.el 2017-02-20 00:23:03 -05:00
40080c47a9 Update .gitignore 2017-02-20 00:23:03 -05:00
d1fed57a50 Ignore cache/snippets symlinks too 2016-09-07 21:26:02 +02:00
d31fe2166e Rewrite ./ext/ setup scripts 2016-08-27 23:01:43 +02:00
56e6a3289a Ignore debug.el 2016-05-27 15:56:01 -04:00
b56755648b Add ext/ to gitignore 2016-03-27 18:13:47 -04:00
7ea2d45f88 Remove snippets dependency; add 'make snippets' 2016-02-26 09:48:09 -05:00
0570abc2dd Clean gitignore + add var/ 2015-12-10 16:30:10 -05:00
e06a6e74f4 Update gitignore (hide cache from :ag) 2015-08-26 18:27:06 -04:00
fa531e6fb7 Update gitignore 2015-08-15 08:47:35 -04:00
5690b75c07 Update gitignore (ignore /private/cache/*) 2015-06-24 15:46:37 +02:00
de70863bed Final *final* update :P 2015-06-06 06:38:16 -04:00
d32b9f0dd0 Yet another massive update 2015-05-28 22:25:01 -04:00
7d44ea4db4 My name is Henrik and I'm an emacs addict. (Hello Henrik) 2015-05-20 22:28:41 -04:00
20f4fdd8d3 Add smex-items to gitignore 2015-05-16 23:27:33 -04:00
a4c8865cc6 Fix typo in gitignore 2014-12-10 15:57:17 -05:00
49712800c6 Remove autoload file 2014-12-10 15:56:20 -05:00
6bda25da1f Major overhaul 2014-12-10 15:54:36 -05:00
81d2520b61 Fix detached HEAD 2014-12-05 17:36:32 -05:00
77349a2046 Rewrote initfiles 2014-12-05 17:28:03 -05:00
4df3c32a8d Update gitignore 2014-11-29 10:20:29 -05:00