Commit Graph

911 Commits

Author SHA1 Message Date
Henrik Lissner
4ced3d3e83
Fix doom/reload #2153 2019-12-04 20:37:59 -05:00
Henrik Lissner
4fed5e7eb3
Fix doom/kill-buried-buffers deleting windows 2019-11-28 19:56:05 -05:00
Henrik Lissner
f6ec3181c8
Fix doom/reload-autoloads 2019-11-25 16:34:56 -05:00
Henrik Lissner
ffc29a547c
Associate clojurescript-mode with :lang clojure
For doom/help-modules
2019-11-24 19:39:10 -05:00
Henrik Lissner
5b190c9eca
Unfold hidden subtree after doom-completing-read-org-headings
Affects doom/help* commands, as well as +default/org-notes-headlines,
and others (any command that uses doom-completing-read-org-headings to
search org files).
2019-11-24 19:21:20 -05:00
Henrik Lissner
a9f412bf5e
Fix doom/help-* commands for helm users #2107 2019-11-24 16:50:46 -05:00
Henrik Lissner
ebe1da4282
doom-module-from-path: exclude psuedo-modules #2107
Don't include :core and :private modules in '<help> d m'. They aren't
real and no help can be derived from them.
2019-11-23 15:01:34 -05:00
Henrik Lissner
26c8f5c6ef
Bytecompiler bytecompiler, won't you shut up 2019-11-23 01:21:25 -05:00
Henrik Lissner
e7019e4163
Fix custom-set-*-faces! macros in Emacs 27
custom--inhibit-theme-enable is non-nil by default in Emacs 27, which
inhibits uses of `custom-theme-set-faces` when modifying any theme other
than 'user.
2019-11-22 16:24:19 -05:00
Henrik Lissner
fcbd91fc0d
Fix custom-set-theme-faces! applying only to 'user 2019-11-22 13:17:10 -05:00
Henrik Lissner
2dc50f49fc
Fix #1500: rewrite font size adjustment commands 2019-11-22 00:39:55 -05:00
Henrik Lissner
441fc5115c
Don't load user's init.el in sandbox sessions
For 'C-c C-p' and 'C-c C-d', specifically.
2019-11-21 21:55:48 -05:00
Henrik Lissner
db19241936
Use gcmh package to manage adjust GC interactively 2019-11-21 14:46:45 -05:00
Henrik Lissner
6f63a28c8f
Require straight on doom//* commands 2019-11-21 14:24:20 -05:00
Henrik Lissner
cfe501fab0
Fix doom//*... again 2019-11-21 14:10:48 -05:00
Henrik Lissner
643c7b0f18
Fix doom//* commands
Hopefully
2019-11-21 00:35:50 -05:00
Henrik Lissner
abe9239088
Simplify doom/report-bug 2019-11-17 21:09:06 -05:00
Henrik Lissner
fa1a19a1f0
core: minor refactor & reformatting 2019-11-17 16:48:26 -05:00
Henrik Lissner
3195b84fd2
Evaluate package! properties & error on :fetcher
- No longer translates :fetcher to :host. Update your package!
  declaration people!
- Now evaluates the values for properties (except for :recipe IF it is a
  list whose CAR passes keywordp -- for backwards compatibility).
- Throws error if an invalid property is used for a package!'s :recipe
2019-11-17 16:48:25 -05:00
Henrik Lissner
a66872fe25
Focus on ripgrep; remove ag, git-grep & grep support
We're focusing on ripgrep so we can iterate on search functionality in
Doom quicker. There is nothing the other search backends can do that
ripgrep can't. It is now a hard dependency for Doom.
2019-11-17 01:19:59 -05:00
Henrik Lissner
b9e5059e3f
Ensure only one window after doom/kill-all-buffers 2019-11-15 22:17:30 -05:00
Henrik Lissner
3d4a51b4a9
Merge pull request #2006 from RBckmnn/FixSudoEdit
Fix doom/sudo-{find,this}-file on remote files
2019-11-15 01:34:00 -05:00
Ralf Beckmann
12fcd3857d Avoid superfluous buffers when sudo-editing
When invoking 'doom/sudo-this-file', do not
keep the old buffer around, since it is most
likely no longer needed.
2019-11-14 20:48:21 +01:00
Henrik Lissner
dd1dd6901f
doom-directory-size: error if path doesn't exist 2019-11-10 04:29:53 -05:00
Henrik Lissner
17b874dedd
Refactor doom-file-size
Change it throw an error if the file doesn't exist.
2019-11-10 01:32:58 -05:00
Henrik Lissner
9ef6ccb7cd
Refactor doom-run-all-startup-hooks-h 2019-11-08 16:02:06 -05:00
Henrik Lissner
44d5e097c9
shell-command-to-string -> doom-call-process #1887
Minor optimization to remove a layer of indirection when starting
processes.
2019-11-08 16:02:06 -05:00
Henrik Lissner
873fc5c0db
Rewrite core-cli
Highlights:
- 'doom purge' now purges builds, elpa packages, and repos by default.
  Regrafting repos is now opt-in with the -g/--regraft switches.
  Negation flags have been added for elpa/repos: -e/--no-elpa and
  -r/--no-repos.
- Removed 'doom rebuild' (it is now just 'doom build' or 'doom b').
- Removed 'doom build's -f flag, this is now the default. Added the -r
  flag instead, which only builds packages that need rebuilding.
- 'doom update' now updates packages synchronously, but produces more
  informative output about the updating process.
- Straight can now prompt in batch mode, which resolves a lot of issues
  with 'doom update' (and 'doom upgrade') freezing indefinitely or
  throwing repo branch errors.
- 'bin/doom's switches are now positional. Switches aimed at `bin/doom`
  must precede any subcommands. e.g.
    Do: 'doom -yd upgrade'
    Don't do: 'doom upgrade -yd'
- Moved 'doom doctor' from bin/doom-doctor to core/cli/doctor, and
  integrated core/doctor.el into it, as to avoid naming conflicts
  between it and Emacs doctor.
- The defcli! macro now has a special syntax for declaring flags, their
  arguments and descriptions.

Addresses #1981, #1925, #1816, #1721, #1322
2019-11-08 16:02:06 -05:00
Henrik Lissner
99cd52e70f
💥 Drop Emacs 25.x support
Emacs 26.1 is Doom's new minimum supported version

Closes #2026
2019-11-08 16:02:06 -05:00
Henrik Lissner
633fd7c95f
Exclude *.org files from doom/help-packages{,-config} 2019-11-03 15:43:18 -05:00
Ralf Beckmann
7a810d53a0 Consider current buffer's file when sudo-editing
If doom/sudo-find-file is invoked with a file that is equal
to the current buffer's file, kill that buffer since it is probably
not needed anymore.
2019-11-03 14:25:10 +01:00
Ralf Beckmann
68e56025bc Fixed sudo edit on remote files
The previous implementation failed, if the
remote user was given only implicitly.
2019-11-03 02:22:52 +01:00
Henrik Lissner
7142b4aa0f
Make plist-put! variadic
And capable of modifying non-symbols in-place.
2019-11-02 00:02:54 -04:00
Henrik Lissner
7a10a68f4e
Merge pull request #1998 from rgrinberg/fix-autoload-cookie
Fix autoload cookie for doom/help-search-loaded-files
2019-11-01 13:09:28 -04:00
yuhan0
ec4a030370 Fix buttons in doom/help-packages 2019-11-01 20:43:22 +08:00
Rudi Grinberg
7900cef7da Follow symlinks when searching autoloads
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
2019-11-01 10:42:39 +09:00
Rudi Grinberg
0e2c642a86 Fix autoload cookie for doom/help-search-loaded-files
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
2019-11-01 10:30:56 +09:00
Henrik Lissner
dca4015003
Fix void-variable themes error at startup
If lexical-binding isn't enabled (with ';; -*- lexical-binding: t; -*-'
at the top of your private config), custom-set-theme! and
custom-theme-set-faces! throw this error. Since these macros are
commonly used in user configs, where I can't police lexical-binding,
I've refactored it to not rely on it.
2019-10-27 14:27:29 -04:00
Henrik Lissner
d79904d51f
Fix custom-theme-set-faces with multiple themes 2019-10-27 14:21:52 -04:00
Bart Brouns
1adbd4e571 add confirmation message after loading a session from file 2019-10-27 14:12:41 +01:00
Henrik Lissner
bf8cc9b007
Improve font resizing commands
- doom/increase-font-size no longer resets the font when resizing back
  to 0 (causing an inelegant flash of the frame).
- doom/reset-font-size will now reset text-scale, as well, if it is
  being used.
- doom/*-font-size commands have been changed to only affect the current
  frame.
- doom-big-font-mode will now affect all frames (since minor modes can't
  be frame-local).
2019-10-26 23:44:29 -04:00
Henrik Lissner
c360f0dceb
Minor refactor & comment/docstring revision 2019-10-26 23:44:28 -04:00
Henrik Lissner
1dd73b7486
Integrate helpful into doom/describe-active-minor-mode 2019-10-26 13:30:53 -04:00
Henrik Lissner
d0ae6c9bda
Merge module list into doom/help-search 2019-10-26 02:12:58 -04:00
Henrik Lissner
592c548b24
Fix ref to renamed function in doom/help-* helper
And improve their UX by displaying a loading message while Doom crawls
the headings.
2019-10-26 02:12:58 -04:00
Henrik Lissner
7c54478335
Ensure doplist! has no side effects 2019-10-26 02:12:58 -04:00
Henrik Lissner
9f8277b2c4
Correct doom/reload-autoloads docstring 2019-10-25 20:25:20 -04:00
Henrik Lissner
9936bd9623
Add 'SPC h d {k,i,c}'
For jumping to init.el, config.el and packages.el
2019-10-25 20:25:20 -04:00
Henrik Lissner
f516d4c342
Fix package! mutating package state at expansion time
Fixes an issue where package! declarations were read unconditionally at
compile time, whether or not they were on a reachable code path. e.g.
evil is always disabled by:

  (when nil
    (package! evil :disable t))
2019-10-25 02:38:15 -04:00
Henrik Lissner
ee80ed680c
Defer evaluation of custom-set-faces!'s arguments
...until the theme has first loaded.

You'll need to set `doom-theme` to nil if you want to use this macro
without a theme!
2019-10-24 19:43:10 -04:00