Commit Graph

4543 Commits

Author SHA1 Message Date
Henrik Lissner
6f951229ec Add & revise comments
And move line number hooks to core/autoload/ui.el
2019-12-31 15:55:56 -05:00
Henrik Lissner
b592e58c97 Fix warning when disabling core packages 2019-12-31 14:10:52 -05:00
Henrik Lissner
a5fc782e76 cli/upgrade: fix wrong-type-arg string force file error #2277
Due to a vestigial call to the old doom-cli-reload-package-autoloads
2019-12-31 03:38:47 -05:00
Henrik Lissner
9012635d3f Remove default doom-variable-pitch-font in config.el template
"sans" may not be available.
2019-12-31 02:27:31 -05:00
Henrik Lissner
7c968a8b11 Fix #2278: autoload gen skipping disabled autodefs
If a ;;;###if module cookie returned nil for a file, it should still
allow autodefs to be scraped from it, which wasn't happening before this
fix.

An autodef's guarantee is that it will always be defined, whether or not
the containing module is enabled.
2019-12-30 23:19:56 -05:00
Henrik Lissner
960d756b47 General, minor refactors 2019-12-30 18:23:56 -05:00
Henrik Lissner
10f29bffde Add chemacs support to doom/restart-and-restore 2019-12-30 18:07:37 -05:00
Henrik Lissner
a4653f475b Print filename instead of absolute paths for purged ELPA packages 2019-12-30 17:28:31 -05:00
Henrik Lissner
f8ed1894e7 Strip text properties from recentf entries
Causing tremendous bloat in recentf lists included with TRAMP paths.
2019-12-30 17:07:39 -05:00
Henrik Lissner
0b1ab39a00 Refactor doom-cli--generate-autoloads 2019-12-30 17:06:49 -05:00
Henrik Lissner
497a6a206e Fix 'wrong-number-of-arguments autoload 9' error in autoloads
This error was caused by over-aggressive replacement of load-file-name
in autoloads files.

Instances of "load-file-name" would be replaced with a quoted file-path,
even in strings and comments, which would break surrounding strings and
docstrings.

Mentioned in hlissner/doom-emacs@f8ff505
2019-12-30 15:52:38 -05:00
Henrik Lissner
908bd4b945 Remove FORCE-P argument for doom-cli-reload-autoloads
We weren't using them anyway.
2019-12-30 06:44:16 -05:00
Henrik Lissner
bfce00d0b4 Don't use so-long if it's been disabled 2019-12-30 05:27:25 -05:00
Clément Busschaert
0ec1355f13 docs/core: typo in featurep! docs
`s/moduel/module`
2019-12-30 09:35:53 +01:00
Henrik Lissner
f8ff50565e Refactor autoload generator
- Halves LOC
- Adopts functional paradigm where possible.
- Reduces the filesize of autoloads files by ~10-20%
- Speeds up autoloads generation by ~20%
2019-12-29 22:20:48 -05:00
Henrik Lissner
b63ce98731 Add benchmark hook & restore switch earlier
If the user wants to remove them for some reason.
2019-12-29 18:47:12 -05:00
Henrik Lissner
0ac7facea7 Reorganize & rethink help commands
Changes:
- Move <help>da to <help>u & <help>du = lookup docs for an autodef
- Rebind <help>dC = goto private init file (and jump to doom! block)
- Add <help>u & <help>du = lookup docs on an autodef
- Add <help>dl = text search on all packages in load-path
- Add <help>dL = text search on all load el files

New <help>p prefix for package help commands:
- <help>dpc = jump to a config block for a package
- <help>dpd = goto private packages.el file
- <help>dph = open a package's homepage (its repo or on melpa)
- <help>dpp = lookup docs on a package (including Doom info; what
    module(s) install package, where it is configured, etc)
2019-12-29 18:29:09 -05:00
Henrik Lissner
678a5d1f7c Improve prompts for various help commands
To make it clearer what you're searching for.
2019-12-28 19:57:37 -05:00
Henrik Lissner
b38501a67b Refactor load-path & loaded-files search commands
Follow up to 0df480bf8
2019-12-28 19:55:44 -05:00
Henrik Lissner
47be32d422 Fail gracefully if no session file is present 2019-12-28 15:46:29 -05:00
Henrik Lissner
8d3954257e Refactor 'doom purge' & fix elpa purging
Wasn't picking up ELPA packages.
2019-12-28 14:02:07 -05:00
Henrik Lissner
6396cbf6cd Refactor 'doom build' 2019-12-28 14:01:36 -05:00
Henrik Lissner
da09a3eb8c Mention commit pinning in docs with package! 2019-12-28 14:00:08 -05:00
Henrik Lissner
2f540f8c45 Remove vestigial references to doom--finalize-straight 2019-12-27 03:30:03 -05:00
Henrik Lissner
e5602c1802 Move async.el out of baseline packages
It isn't needed anywhere atm. Perhaps we don't need it in core at all?
2019-12-27 01:52:45 -05:00
Henrik Lissner
0ff68e5a7f Don't handle straight transactions anymore
Since raxod502/straight.el@e45f726, straight handles its transactions in
non-interactive sessions.
2019-12-27 01:44:41 -05:00
Henrik Lissner
a02cfdc365 No-op package--ensure-init-file completely
Rather than setting package--init-file-ensured to nil. It's less work
for Emacs at startup and is functionally equivalent.
2019-12-27 01:44:40 -05:00
Henrik Lissner
09b49ee83a Silence unused retval warnings from package! 2019-12-26 02:44:23 -05:00
Henrik Lissner
c1ff03ebed Expand :local-repo relative to containing file 2019-12-26 02:40:56 -05:00
Henrik Lissner
fe1642e854 Add special goto def/docs support in doom! blocks
- Pressing gd on a module in your doom! block will now browse that
  module's directory.
- Pressing K on a module will jump to that module's documentation, if any.
- Pressing K on a module flag will jump to that flag's description
  within that module's documenation.
- This is now explained in init.example.el

Closes #2249
2019-12-26 01:41:45 -05:00
Henrik Lissner
7cc8a90c11 Disable save-place in large/long files 2019-12-26 01:41:45 -05:00
Henrik Lissner
adc8cba14b Revise docstrings & minor reformatting 2019-12-26 01:41:44 -05:00
Henrik Lissner
550c9bda74 cli/packages: implement commit pinning support
This is step 2 toward version pinning and rollback.

Next step is to actually pin packages.

Step 1 was 125561eb0
2019-12-25 14:02:43 -05:00
Henrik Lissner
606d53cc47 Fix wrong-type-argument when opening file that doesn't exist yet 2019-12-25 14:02:43 -05:00
Henrik Lissner
fd66b2321e Trigger so-long even in modes with no comment syntax
Refactoring of #2183
2019-12-25 02:17:01 -05:00
Henrik Lissner
aa3cb1e7dc Inhibit saveplace in "large" files 2019-12-25 02:15:48 -05:00
Henrik Lissner
44fcbb52dc Change format of doom-large-file-size-alist
Instead of mapping major modes to file size thresholds, it maps file
regexps (like auto-mode-alist) since the major mode cannot be known
before set-auto-mode is called (in after-find-file).
2019-12-25 02:13:53 -05:00
Henrik Lissner
f04af0b8a2 Bind 'SPC b u' to save current file as root 2019-12-24 14:25:08 -05:00
Henrik Lissner
28e36222ed Reformat package! macro 2019-12-24 02:35:07 -05:00
Henrik Lissner
ebc30232a3 Fix package manager ignoring :disable 2019-12-24 02:25:37 -05:00
Henrik Lissner
125561eb03 Refactor package! & package init system
- Reduces `package!`'s side-effects and moves them to
  `doom-initialize-packages`.
- Adds :pin to `package!` for commit pinning (but it hasn't been
  implemented just yet -- needs more testing)!
- Adds `doom-pinned-packages` variable
- Now overrides straight recipes using `straight-override-recipe`
  instead of in-house merging.
2019-12-24 00:02:50 -05:00
Henrik Lissner
f49913fc9e define-key! -> global-set-key
In case general hasn't been installed yet.
2019-12-24 00:00:40 -05:00
Henrik Lissner
ffcc24350c Add DOOMDIR to 'doom info' 2019-12-23 23:53:27 -05:00
Henrik Lissner
b88ff2a563 Fix s-backspace for non-evil users 2019-12-23 17:21:30 -05:00
Henrik Lissner
59152248e6 bin/doom: fix wrong-type-argument hash-table-p errors #2227
We can't be consulting the active doom state before it has be
initialized.
2019-12-23 14:20:04 -05:00
Henrik Lissner
b144a3862a Bind 'SPC h d S' to text search; expand ivy/helm file-search API 2019-12-23 01:51:43 -05:00
Henrik Lissner
e8aa293bc0 Defer tty-run-terminal-initialization to window-setup-hook
This seems to work just as well, and ensures it runs in time for
interactive use.
2019-12-23 00:02:10 -05:00
Henrik Lissner
5bff064ba8 Reduce number of projectile project root markers
Reduce overall I/O needed to detect project roots, at the expense of
losing detection for less popular version control systems.
2019-12-22 23:53:05 -05:00
Henrik Lissner
86c2d7c10a No longer retain projectile cache across sessions
It's unnecessary overhead. Rebuilding the index the first time it is
used per session is acceptable, imo.
2019-12-22 23:53:05 -05:00
Henrik Lissner
29b383d900 Disable tty-run-terminal-initialization
This code *may* have side-effects, but it does reduce startup time for
terminal users by a significant margin. In my case it reduced from 2.6s
to 0.4s.
2019-12-22 23:53:04 -05:00