Commit Graph

4543 Commits

Author SHA1 Message Date
8f68237e8b Don't pretty-print doom/info's packages section
Your doom/info should be a compact summary of your config. Pretty
printing the packages listing vertically consumed too much space.
2020-03-10 23:54:07 -04:00
836c1b29ed Bump to Fuco1/smartparens@1f8857c
From Fuco1/smartparens@be8d5c9

Fixes #2543
Closes #2682
2020-03-08 17:30:50 -04:00
fb8d96f1cb Preserve cursor+window position, rather than recenter
After n/N or */# searches with evil.
2020-03-06 16:36:35 -05:00
69f14bc3da Apply smartparens lisp rules to sly-mrepl-mode 2020-03-06 15:26:36 -05:00
e66769293c Fix potential hashing clashes w/ transient hooks 2020-03-03 18:58:45 -05:00
f8a69464d0 Remove smartparens dependency for doom/info 2020-03-03 16:15:43 -05:00
79e5a27fab Prefix arg = don't restore last scratch buffer 2020-03-03 12:44:33 -05:00
e5a91d2912 [:tools ein] ensure keybindings still valid 2020-03-03 07:24:09 -05:00
ca74996d1b Complain if repo is invalid on 'doom update' 2020-03-01 13:25:47 -05:00
3ecff5777b Fix overaggressive recloning when updating packages 2020-03-01 13:23:39 -05:00
bbd1561a3c Make doom-real-buffer-p work for indirect buffers 2020-03-01 01:33:40 -05:00
eb69073578 Fix infinite redrawing/freezing with {centaur,awesome}-tabs
Caused by over-zealous doom-switch-window-hook.

For my own sanity (and if you're curious), I'll break it down here:

1. Doom has a `doom-switch-window-hook` hook. It triggers when window
   focus is changed.
2. We use `buffer-list-update-hook` to trigger
   `doom-switch-window-hook`. (That may sound weird, but this hook is
   reliably executed when window focus is changed -- there are
   safeguards to prevent this from triggering too often)
3. `buffer-list-update-hook` triggers whenever a buffer is created, but
   `doom-switch-window-hook` only triggers if the created buffer is in
   a new window.
4. The use of `with-temp-buffer` in `centaur-tabs-line-format` counts as
   "buffer creation" in a "new window".
5. `+vc-gutter-update-h` is in `doom-switch-window-hook`. This refreshes
   git-gutter, which initiates a redraw of Emacs.
6. When Emacs redraws, it recalculates its mode and header lines. which
   triggers `doom-switch-window-hook` once, which triggers
   `+vc-gutter-update-h`, which redraws the screen, then Emacs recalculates
   the header line, running `centaur-tabs-line-format`...

Infinite loop ensues

Hopefully fixes:
- hlissner/doom-emacs#2436
- ema2159/centaur-tabs#18
- ema2159/centaur-tabs#88
2020-02-27 21:47:32 -05:00
089e653637 Reduce so-long false positives 2020-02-26 18:05:58 -05:00
e54ebcbff5 Fix #2607: void-variable doom-scratch-initial-major-mode error
And fix "selected deleted buffer" error caused by aggressive
window-configuration-change-hook function.
2020-02-26 09:46:50 -05:00
2f251edc87 Fix doom-guess-mode-h for indirect buffers 2020-02-25 20:34:26 -05:00
9fa76836c1 Persist scratch buffer point, mode & contents
Also renames doom-scratch-buffer-major-mode ->
doom-scratch-initial-major-mode, since it only affects the initial
buffer now.

This was designed to be backwards compatible; you won't lose your
scratch buffers from this update. Though I may remove the old format in
3.1.
2020-02-25 20:30:23 -05:00
da3e24e686 Preserve cursor position for scratch buffer
Not across restarts, but across toggles of the scratch popup.
2020-02-25 18:11:13 -05:00
b30f38ac06 Minor refactor & reformatting across the board 2020-02-23 15:42:43 -05:00
50c61c57bc Update def-project-mode! macro docstring
Remove mention of `doom-project`, since it no longer exists.
2020-02-22 20:38:34 -05:00
65a71d5647 Link to doom-real-buffer-p in other real buffer functions
To make the explanation easier to find.
2020-02-22 18:31:10 -05:00
0f4c0cce5b Only unset file-name-handler-alist in interactive sessions 2020-02-21 17:03:47 -05:00
900ec70ee3 Ensure menu/tool/scroll bars are disabled 2020-02-21 12:49:57 -05:00
cd2f01e9ab Set fixed-pitch font too 2020-02-21 01:05:18 -05:00
8a7763337d doom refresh -> doom sync
refresh isn't going anywhere, but sync will be the canonical command
here on out, because it is more appropriate for kind of work it will be
doing in the future.
2020-02-19 23:34:16 -05:00
71e5a5513b Fix #2556 (hopefully): exec format error on Windows 2020-02-19 17:54:50 -05:00
f7445a10db General refactor & reformatting across the board 2020-02-18 22:56:47 -05:00
838f96a581 Fix persistent-soft :pin 2020-02-18 01:54:18 -05:00
e404b48c05 Bump gcmh, xclip, projectile & which-key
koral/gcmh@f542908 -> koral/gcmh@8867533
emacs-straight/xclip@88003b782e -> emacs-straight/xclip@d022cf947d
bbatsov/projectile@84be1da -> bbatsov/projectile@341150c
justbur/emacs-which-key@cf44641 -> justbur/emacs-which-key@7b068f3
2020-02-13 14:41:25 -05:00
066afa17da Update doomdir templates 2020-02-13 01:37:04 -05:00
2af574eb0d Merge pull request #2518 from bepvte/bepvte/git-shallower
Make doom purge -g more effective
2020-02-11 03:24:56 -05:00
9cbbf81c3f Don't recompile in 'doom sync'
This may be reinstated later, but for now is a common source of issues
because Doom must be fully loaded before byte-compiling; and doing this
is prone to errors when Doom is in an incomplete state (which may be the
case if there were an error earlier in 'doom sync').

This won't be an issue once the doom script becomes transactional.
2020-02-11 03:20:14 -05:00
0a463673c9 make doom purge -g more aggressive
Reflog keeps the history of every reset, so expiring it allows us to
remove more older commits. git gc by default only cleans for 2 week old
objects, so I made it more aggressive
2020-02-10 20:23:09 -05:00
dc24c1cddc Merge branch 'develop' into add-persistent-soft-package 2020-02-09 17:20:26 -05:00
014385a9f6 Prevent numerical type errors on after-find-file
In some edge cases.
2020-02-07 04:23:07 -05:00
fba3c83403 Bump helpful, projectile & which-key
Wilfred/helpful@e511e8d -> Wilfred/helpful@c54e9dd
bbatsov/projectile@27a0da9 -> bbatsov/projectile@84be1da
justbur/emacs-which-key@db3d003 -> justbur/emacs-which-key@cf44641
2020-02-06 22:54:16 -05:00
1910453e29 The byte-compiler ate my baby 2020-02-06 16:55:27 -05:00
77e58609d4 doom/update-pinned-package-form: improve error feedback 2020-02-06 15:27:03 -05:00
a933c5a475 Bump to Fuco1/smartparens@be8d5c9a63 2020-02-04 12:48:27 +09:00
1cacfcf962 Fix #2479 2020-02-03 13:01:46 -05:00
8de0f62c52 apply Henrik changes 2020-02-02 23:44:03 +00:00
f9e8cb2f01 adding warning message 2020-02-02 23:39:42 +00:00
266ea5038c Update install.el 2020-02-02 23:23:05 +00:00
22bc21a712 windows: disable all-the-icons font install
the command is actually fairly useless on windows anyway -- unless you are specifically running emacs with elevated privileges, you get the following error:

```
This will download and install fonts, are you sure you want to do this? (y or n) y
Contacting host: raw.githubusercontent.com:443
mm-write-region: Opening output file: Permission denied, c:/Windows/Fonts/material-design-icons.ttf
```
2020-02-02 23:16:47 +00:00
04d14bcba9 Minor refactors & comment correction 2020-02-02 16:03:34 -05:00
29e4719a7d Disable GUI elements even if you use chemacs #2354 2020-02-02 02:07:13 -05:00
4a5cf04761 General refactors & appease byte-compiler 2020-02-02 02:05:20 -05:00
0dc173a631 Polish progress output during 'doom update' 2020-02-01 02:07:24 -05:00
7c0e884664 Add persistent-soft to core/packages.el
core/autoload/cache.el defines doom-cache-* functions that wrap around
the persistent-soft package.
2020-01-31 23:19:40 +01:00
e31bb63c14 message-log-max = 8192 2020-01-31 16:43:08 -05:00
53d799f377 Reduce file init work when reading autoloads
Should suppress Emacs trying to read file-local variables and/or
attempts to open TAGS files for the current project.
2020-01-30 19:39:36 -05:00