Commit graph

4235 commits

Author SHA1 Message Date
Henrik Lissner
ca74996d1b
Complain if repo is invalid on 'doom update' 2020-03-01 13:25:47 -05:00
Henrik Lissner
3ecff5777b
Fix overaggressive recloning when updating packages 2020-03-01 13:23:39 -05:00
Henrik Lissner
bbd1561a3c
Make doom-real-buffer-p work for indirect buffers 2020-03-01 01:33:40 -05:00
Henrik Lissner
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
Henrik Lissner
089e653637
Reduce so-long false positives 2020-02-26 18:05:58 -05:00
Henrik Lissner
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
Henrik Lissner
2f251edc87
Fix doom-guess-mode-h for indirect buffers 2020-02-25 20:34:26 -05:00
Henrik Lissner
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
Henrik Lissner
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
Henrik Lissner
b30f38ac06
Minor refactor & reformatting across the board 2020-02-23 15:42:43 -05:00
Henrik Lissner
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
Henrik Lissner
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
Henrik Lissner
0f4c0cce5b
Only unset file-name-handler-alist in interactive sessions 2020-02-21 17:03:47 -05:00
Henrik Lissner
900ec70ee3
Ensure menu/tool/scroll bars are disabled 2020-02-21 12:49:57 -05:00
Henrik Lissner
cd2f01e9ab
Set fixed-pitch font too 2020-02-21 01:05:18 -05:00
Henrik Lissner
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
Henrik Lissner
71e5a5513b
Fix #2556 (hopefully): exec format error on Windows 2020-02-19 17:54:50 -05:00
Henrik Lissner
f7445a10db
General refactor & reformatting across the board 2020-02-18 22:56:47 -05:00
Henrik Lissner
838f96a581
Fix persistent-soft :pin 2020-02-18 01:54:18 -05:00
Henrik Lissner
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
Henrik Lissner
066afa17da
Update doomdir templates 2020-02-13 01:37:04 -05:00
Henrik Lissner
2af574eb0d
Merge pull request #2518 from bepvte/bepvte/git-shallower
Make doom purge -g more effective
2020-02-11 03:24:56 -05:00
Henrik Lissner
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
Paul Oppenheimer
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
Henrik Lissner
dc24c1cddc Merge branch 'develop' into add-persistent-soft-package 2020-02-09 17:20:26 -05:00
Henrik Lissner
014385a9f6
Prevent numerical type errors on after-find-file
In some edge cases.
2020-02-07 04:23:07 -05:00
Henrik Lissner
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
Henrik Lissner
1910453e29
The byte-compiler ate my baby 2020-02-06 16:55:27 -05:00
Henrik Lissner
77e58609d4
doom/update-pinned-package-form: improve error feedback 2020-02-06 15:27:03 -05:00
Seong Yong-ju
a933c5a475 Bump to Fuco1/smartparens@be8d5c9a63 2020-02-04 12:48:27 +09:00
Henrik Lissner
1cacfcf962
Fix #2479 2020-02-03 13:01:46 -05:00
xeijin
8de0f62c52
apply Henrik changes 2020-02-02 23:44:03 +00:00
xeijin
f9e8cb2f01
adding warning message 2020-02-02 23:39:42 +00:00
xeijin
266ea5038c
Update install.el 2020-02-02 23:23:05 +00:00
xeijin
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
Henrik Lissner
04d14bcba9
Minor refactors & comment correction 2020-02-02 16:03:34 -05:00
Henrik Lissner
29e4719a7d
Disable GUI elements even if you use chemacs #2354 2020-02-02 02:07:13 -05:00
Henrik Lissner
4a5cf04761
General refactors & appease byte-compiler 2020-02-02 02:05:20 -05:00
Henrik Lissner
0dc173a631
Polish progress output during 'doom update' 2020-02-01 02:07:24 -05:00
Alexander Graul
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
Henrik Lissner
e31bb63c14
message-log-max = 8192 2020-01-31 16:43:08 -05:00
Henrik Lissner
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
Henrik Lissner
9a0e029135
Fix output truncation & indentation on 'doom update' 2020-01-30 18:38:18 -05:00
Henrik Lissner
ede5beed7a
Change doom-plist-delete to delete N props 2020-01-30 16:58:49 -05:00
Henrik Lissner
b8c25b6b4e
Move after! to core-lib
Doesn't really belong in core-modules.
2020-01-30 16:57:49 -05:00
Henrik Lissner
35364f1dd1
Fix hash-table-p errors on 'doom build' 2020-01-30 15:31:30 -05:00
Henrik Lissner
c801a70ec7
Bump to emacs-straight/undo-tree@5b6df03781
Fixes #2444
2020-01-29 16:37:05 -05:00
Henrik Lissner
18b0210e5b
Remove nconcq! test
The macro was removed some time ago.
2020-01-29 16:33:37 -05:00
Henrik Lissner
097972bd9d
Refactor package pinning
- Make doom/info package details more concise
- Removed doom-pinned-packages variable (pin info now stored in
  doom-packages metadata)
- Fix unpin! not actually unpinning some packages
2020-01-28 20:47:45 -05:00
Henrik Lissner
c6518498b9
Fix void-variable targets when using unpin! macro 2020-01-28 14:07:08 -05:00