Commit graph

4310 commits

Author SHA1 Message Date
Henrik Lissner
8ff15c2aeb
Optimize doom-point-in-*-p functions
Since we won't be dumping smartparens just yet, use it for now.
2020-01-03 02:44:29 -05:00
Henrik Lissner
8857dc1a5e
Add doom-point-in-{comment,string}-functions
Fixes #2297
2020-01-03 02:40:50 -05:00
Henrik Lissner
27bf3c85b5
Generalize thing-at-point & region functions 2020-01-03 02:39:47 -05:00
Henrik Lissner
195dfda045
Minor refactors & comment revision 2020-01-02 21:16:02 -05:00
How Si Wei
da8bce53bc Enable smartparens-mode during pp-eval-expression 2020-01-03 00:21:01 +08:00
Henrik Lissner
4d64021980
Merge pull request #2270 from facelesspanda/patch-1
docs/core: fix typo in `featurep!` docstring
2020-01-02 00:04:39 -05:00
Henrik Lissner
f78f71a74c
Minor refactors & comment revision 2020-01-01 23:52:02 -05:00
Henrik Lissner
fd6def4d5a
Fix letenv! macro
It didn't work due to over-aggressive quoting of the let-vars.
2020-01-01 23:48:36 -05:00
Henrik Lissner
8f5977d9b8
Fix #2282: save-interprogram-paste-before-kill = nil
Seems more problematic than helpful to manipulate Emacs' kill-ring more
than we have to.
2020-01-01 21:24:06 -05:00
Henrik Lissner
29773baa55
Add 'doom sync' as an alias for 'doom refresh'
'sync' more accurately describes the purpose of the command. 'refresh'
is now soft-deprecated; but I will phase it out of the documentation
and promote 'sync' instead, but it won't be removed.
2020-01-01 21:19:21 -05:00
Henrik Lissner
2ef0ed90a4
Fix C-a/C-e #1802
Fixes two issues:
1. Where C-e would throw the cursor somewhere on another line (or at
   BOF).
2. Fixes #1802; where the cursor would stop a character shy of true
   end-of-text.
2020-01-01 21:19:21 -05:00
Henrik Lissner
f0e05c1a44
Fix C-w in ivy not moving up directory
And ensure C-w doesn't affect kill-ring from minibuffer.
2020-01-01 19:58:52 -05:00
Henrik Lissner
5929e5b75a
Add undefadvice! macro for rotate-text convenience 2020-01-01 19:34:33 -05:00
Henrik Lissner
7a348f8784
Refactor how we indent straight's progress output
More work up front, less work in the trenches.
2020-01-01 19:34:30 -05:00
Henrik Lissner
4f676bd218
Refactor autoload generator bootstrappers 2020-01-01 13:31:40 -05:00
Henrik Lissner
4a53f0818d
Don't insert autoloads literally #2281
It causes encoding issues.
2020-01-01 03:02:05 -05:00
Henrik Lissner
445ba1a46d
Minor refactors & comment revision across the board 2019-12-31 19:18:02 -05:00
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