Commit Graph

3977 Commits

Author SHA1 Message Date
e1d62f5d12 Don't trigger create-missing-directories on remotes
Also: minor refactor of the hook.
2019-11-02 13:25:43 -04:00
7142b4aa0f Make plist-put! variadic
And capable of modifying non-symbols in-place.
2019-11-02 00:02:54 -04:00
7b9991711a defvar->defconst for dir vars & expand DIR envvars
- Use defconst so that we can reload core.el if these variables change.
- Expand DIR envvars to ensure their correctness
2019-11-01 15:12:12 -04:00
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
7759130ba3 Merge pull request #2001 from yuhan0/fix-help-buttons
Fix buttons in doom/help-packages
2019-11-01 13:08:05 -04:00
ec4a030370 Fix buttons in doom/help-packages 2019-11-01 20:43:22 +08:00
7900cef7da Follow symlinks when searching autoloads
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
2019-11-01 10:42:39 +09:00
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
e0cd71e25f Complain louder about deprecated def-package! macros
They will be removed soon.
2019-10-31 14:35:24 -04:00
d407b3355a Fix nonsensical error if autoloads are missing
`signal` treats its second argument like a list. Passing it a string
make it spew out the message as a list of character codes.
2019-10-30 00:03:39 -04:00
90d9fd65b7 Fix void-function if-let on startup #1982 2019-10-30 00:03:39 -04:00
63dfd298ca Append slash to DOOMLOCALDIR & DOOMDIR
If needed.
2019-10-29 22:36:51 -04:00
2a6b1a1fb6 Unset projectile-git-submodule-command if tr is unavailable
Otherwise windows users can't use projectile in projects with
submodules.
2019-10-29 11:36:46 -04:00
6549a4f982 Fix pre-existing font frame parameter being overwritten 2019-10-29 01:10:24 -04:00
af69cd0840 Fix auto-revert occasionally prompting for confirmation 2019-10-28 23:23:13 -04:00
b0ac9abfbf Fix add-hook! for hooks that take arguments 2019-10-28 23:23:13 -04:00
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
5b1dc3c63f Support INSECURE envvar (again) 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
f6df219544 Improve error when featurep! can't see current module 2019-10-26 02:13:40 -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
c2f6aa3e9d Remove duplicate straight-are-you-sure advice 2019-10-26 00:58:26 -04:00
c990c50fb8 Force straight to fall back to tty prompts
Otherwise it tries to use popups, which are invisible in non-interactive
Emacs, causing Emacs to block indefinitely.
2019-10-26 00:35:47 -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
641d4a1b71 Fix ':built-in prefer' in package!
It was treating 'prefer as truthy, thus preventing packages with it from
being installed (like so-long).
2019-10-25 04:00:49 -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
d5548e5994 Remove osx-clipboard package
Forgot to remove it in f34c33aa0
2019-10-23 22:13:45 -04:00
f34c33aa07 Fix clipboard in tty Emacs
xclip has support for a number of clipboard programs (xclip, xsel,
pb{copy,paste}, wl-copy, termux-clipboard and getclip).
2019-10-23 05:05:45 -04:00
f4acb3cefd New add-load-path! convenience macro 2019-10-23 04:24:06 -04:00
e1622142ed Minor, general refactors 2019-10-23 03:57:48 -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
8cedbc3b5d Prioritize fdfind over fd #1931
Since fd is used by another program on Ubuntu.
2019-10-22 12:40:30 -04:00
6e6672b135 Disable read-only-mode in so-long-minor-mode 2019-10-22 12:36:43 -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
5b9b029bbf Comment & further optimize so-long-mode 2019-10-20 10:58:53 -04:00
634b4b2bc7 Associate *.log files with text-mode 2019-10-20 10:58:53 -04:00
70e6c17de5 Don't autorevert if minibuffer is active
Some ivy/helm commands allow you to preview buffers, which is not an
appropriate time to (invisibly) revert them. The message could be missed
and expensive machinary could be triggered (e.g. updating git-gutter),
which could appear slow. Best to defer reverting until the user has
deliberately landed on the target, and is more likely to notice a revert
notification in the minibuffer.

Suggested by @flatwhatson
2019-10-20 10:58:53 -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
7cbd6c756c Remove projectile-add-known-project autoload
Merged upstream in bbatsov/projectile#1457
2019-10-20 10:58:53 -04:00
9b25582be1 Reduce list of root files projectile searches for
And define them on a per-module basis. This reduces the number of file
checks it performs, particularly for non-project files.

Might help #1317
2019-10-19 22:22:49 -04:00