Commit Graph

1074 Commits

Author SHA1 Message Date
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
d79904d51f Fix custom-theme-set-faces with multiple themes 2019-10-27 14:21:52 -04:00
1adbd4e571 add confirmation message after loading a session from file 2019-10-27 14:12:41 +01:00
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
c360f0dceb Minor refactor & comment/docstring revision 2019-10-26 23:44:28 -04:00
1dd73b7486 Integrate helpful into doom/describe-active-minor-mode 2019-10-26 13:30:53 -04:00
d0ae6c9bda Merge module list into doom/help-search 2019-10-26 02:12:58 -04:00
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
7c54478335 Ensure doplist! has no side effects 2019-10-26 02:12:58 -04:00
9f8277b2c4 Correct doom/reload-autoloads docstring 2019-10-25 20:25:20 -04:00
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
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
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
ac58eaf031 Add comment to search loaded .el files
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2019-10-23 14:41:12 +09:00
0df480bf85 Bind 'SPC h d l' for text-searching load-path
Co-authored-by: Rudi Grinberg <139003+rgrinberg@users.noreply.github.com>
2019-10-23 00:51:09 -04:00
e0469e14c0 Minor refactors & reformatting across the board 2019-10-20 19:57:27 -04:00
a8cc68e00b Add doom/homepage command
Not that the site exists yet, but I'm tired of having all these tidbits
of uncommitted code laying about. It'll exist eventually!
2019-10-20 15:14:37 -04:00
c109acd6fd Optimize doom-visible-buffers
Walking the window list is almost always faster than walking the buffer
list.
2019-10-20 10:58:53 -04:00
c8efb45746 Add doom-{file,directory}-size file functions 2019-10-19 14:38:56 -04:00
679b16a22e Fix doom-exec-process not returning output 2019-10-19 02:34:57 -04:00
f2cd5bdf97 Add doom-{call,exec}-process functions & let-cliopts! macro
Needed for 3e947d39b and for upcoming CLI rewrite.
2019-10-17 14:38:00 -04:00
8b57226634 doom/toggle-debug-mode: affect jka-compr-verbose & lsp-log-io 2019-10-17 02:36:19 -04:00
24b336322c Fix doom/kill-buried-buffer closing windows
By making doom/kill-all-buffers less gung ho about deleting windows when
the buffer list is empty.
2019-10-14 18:48:42 -04:00
da7aef9a4c Move --restore handler to init.el #1893 2019-10-14 02:54:29 -04:00
55e00bbd26 re-search-forward to search-forward when no re
When no regular expression is present, it's faster and simpler to use
search-forward

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2019-10-13 12:25:41 +09:00
30c091d3f5 Fix non-string args to file-exists-p! macro 2019-10-12 00:48:48 -04:00
82167ab48a Remove :lang vala module
To small to warrant a module and vala-mode is unmaintained. It's trivial
for end users to install it themselves.
2019-10-10 21:31:13 -04:00
a3fa1e07b1 Refactor doom/kill-*-buffer commands 2019-10-10 16:11:42 -04:00
9e3974d2f3 doom/help-faq: restrict to second-levels headings 2019-10-10 16:11:41 -04:00
d9945d8964 autoload/format: add doom-format-indent-increment 2019-10-07 12:57:18 -04:00
fa051797f2 Move --restore handler to autoload/sessions 2019-10-07 12:56:53 -04:00
297728bf74 Generalize doom-file-cookie-p
And move it to doom-file-cookie-p for anyone to use.
2019-10-04 22:42:53 -04:00
38e445afe7 Fix #1831: typo & extra args in doom/toggle-narrow-buffer 2019-09-27 11:34:21 -04:00
4a8cef56ea Fix doom/info omitting flags on some modules 2019-09-26 21:57:55 -04:00
22e3dfa677 Update doom/reload-env
To use `doom env` instead of `doom env refresh` (which is deprecated)
2019-09-26 14:26:47 -04:00
e10cd8cf2e Insult byte-compiler's mom
Yeah, that shut him up.
2019-09-20 23:10:53 -04:00
5f7add8360 Update doom/reload-{theme,font}
To reflect changes introduced in 17174e143
2019-09-20 19:52:55 -04:00
ac87e3d517 Merge pull request #1784 from flatwhatson/many-faces
Fix the multi-face form of custom-set-faces!
2019-09-15 01:43:56 -04:00
fff4968da9 Change how doom/info lists private packages 2019-09-14 18:27:58 -04:00
c8cd94a5d2 Add window-system & daemonp props to 'doom info' 2019-09-14 18:27:58 -04:00
f23a833f31 Fix the multi-face form of custom-set-faces! 2019-09-15 02:09:58 +10:00
f9190c08bf Remove unused argument in doom/narrow-buffer-indirectly 2019-09-14 01:55:53 -04:00
6bef031e25 Bind SPC b - to doom/toggle-narrow-buffer 2019-09-14 01:55:16 -04:00
4c0eb989fb Fix duplicate paths in initial input for doom/save-session
Forgot to do this in 3e3808aa8
2019-09-13 22:00:34 -04:00
31ccd9be78 Replace vestigial references to def-package!
def-package! is deprecated and is replaced with use-package! to reduce
confusion about its purpose and connection to use-package.
2019-09-13 22:00:34 -04:00
8ad8b5d8ad Make narrow/widen commands incremental
Doom's narrow/widen commands will now narrow/widen incrementally (using
indirect buffer clones). If the prefix arg is passed to the widen
command, kill all indirect buffers and widen the parent buffer.
2019-09-13 01:58:27 -04:00
5e6c2205b8 Bind to zn/zN to new narrow/widen (indirect) commands 2019-09-13 00:28:08 -04:00
3e3808aa8d Fix duplicate paths in initial input for doom/load-session 2019-09-12 17:25:54 -04:00
9d775ca798 Autoload format library
If you byte-compile your config, the expanded forms of this library's
macros (like print! or format!) will use internal functions that aren't
autoloaded (like `doom--format`, mentioned in #1768), causing
void-function errors.
2019-09-09 13:59:13 -04:00
4bc65a3f78 Prevent C-c C-p sandbox from loading private modules
And don't change doom-private-dir, as it isn't necessary and it affects
the purity of the test environment.
2019-09-06 15:37:40 -04:00