Commit graph

5004 commits

Author SHA1 Message Date
Henrik Lissner
3bb271738a Fix void-variable disto on M-x doom/info 2021-03-04 16:10:45 -05:00
Henrik Lissner
7798aa9190 Fix repo location in doom/help-packages 2021-03-04 14:09:40 -05:00
Henrik Lissner
70c8ca30b2 Update docstrings for doom/window-{enlargen,maximize-buffer}
As of 56e9d273e, these commands no longer toggle because the toggle was
brittle could be unpredictable at times. Use winner-undo instead (on
`C-w r` or `SPC w r` by default).
2021-03-02 23:48:54 -05:00
Henrik Lissner
8ccba925dd Fix parsing issue in doom-system-distro{,-version}
No guarantee the values in /etc/os-release are quoted.

Also, eliminate the code paths where these functions return nil.
2021-03-02 11:59:55 -05:00
Benjamin Tan
f151b3de45
Load autoload/system in core-cli
Fixes #4715.
2021-03-02 15:57:45 +08:00
Henrik Lissner
ad16d85e99
Merge pull request #4600 from MageJohn/refactor/help-packages
Refactor doom/help-packages
2021-03-01 22:53:59 -05:00
Henrik Lissner
c5e3f4d632 New autoload/system.el core library 2021-03-01 22:27:17 -05:00
Henrik Lissner
9ef11d0e31 Auto-truncate compilation buffers
To prevent memory issues in long lived processes.

Allows #4261 to be merged
Addresses (and mentioned in) asok/projectile-rails#148
2021-02-26 21:33:00 -05:00
Henrik Lissner
6cb5c381b8 Disable dtrt-indent in pascal-mode
Throws wrong-type-argument number-or-marker-p errors otherwise, because
dtrt-indent--for-each-indentation calls
dtrt-indent--skip-to-end-of-match with four nil arguments (presumably
because there is no pascal entry in dtrt-indent-language-syntax-table)
and there is no fall back to its default entry.
2021-02-25 18:34:31 -05:00
Henrik Lissner
1274de3d34 Minor reformatting & refactors across the board 2021-02-25 13:59:43 -05:00
Henrik Lissner
b8b51cee7b Simplify after!
The featurep check is redundant. eval-after-load does it too.
2021-02-24 18:28:23 -05:00
Henrik Lissner
d52abd37f7 Fix #4691: half revert 7e9911f642
Seems this was not fixed upstream.
2021-02-24 18:06:30 -05:00
Henrik Lissner
3894611a8f Minor comment revision 2021-02-21 14:44:59 -05:00
Henrik Lissner
1a92dcab7e Blacklist XAUTHORITY from envvar files
XAUTHORITY is likely to become stale if persisted across sessions.
2021-02-21 14:44:59 -05:00
Henrik Lissner
79f2f42b95 Persist Emacs registers across sessions
Has the side effect of persisting evil macros between
sessions (equivalent to vim's "set viminfo")
2021-02-21 14:44:59 -05:00
Henrik Lissner
47925933df Fix "Can't set ASCII font to nil" error in daemon
Caused because the :ui unicode module sets doom-unicode-font to nil,
then doom-init-extra-fonts-h tries to use it.
2021-02-17 14:20:37 -05:00
Henrik Lissner
60f74c7696 Resolve symlinks in module paths 2021-02-17 13:47:43 -05:00
Henrik Lissner
987da645c2 core/cli: show run duration in human-readable format
e.g. "Finished in 2h27m11s"

I pray for your soul if you ever see "h".
2021-02-13 09:47:13 -05:00
Henrik Lissner
0ff85015f8 s/defadvice!/advice-add in comp config block
Part 2 of 811099282.

The latest build of native-comp appears to eagerly load comp very early,
so defadvice! won't be defined when this block runs, causing this error.
2021-02-11 23:33:28 -05:00
Henrik Lissner
0df791469d Resolve symlinks in autoloads files
For marginally faster package load times.
2021-02-11 23:00:49 -05:00
Henrik Lissner
5d0f781062 Add doom-autoloads-excluded-files variable
So specific/problematic files can be omitted from autoloads.
2021-02-11 23:00:11 -05:00
Henrik Lissner
dc89eb239c Remove load-path & Info-directory-list duplicates
Potentially slowing down load times due to unresolved symlinks.
2021-02-11 22:48:58 -05:00
Henrik Lissner
7e9911f642 Bump :core
domtronn/all-the-icons.el@5fa7283 -> domtronn/all-the-icons.el@2f5ea72
jscheid/dtrt-indent@854b9a1 -> jscheid/dtrt-indent@4a30d8e
jwiegley/use-package@317137b -> jwiegley/use-package@a7422fb
raxod502/straight.el@f2cb888 -> raxod502/straight.el@0f9b828

Remove dtrt-indent+smie fix (was fixed upstream)
2021-02-11 17:35:48 -05:00
Henrik Lissner
76636d4a98 Refactor cmds!!
+ No longer depends on general.el
+ Each branch is now anaphoric (binds `it` to the return value of the
  predicate)
2021-02-11 17:35:48 -05:00
Henrik Lissner
1a7536cbd1 Extend & compact doom/info
+ Output is now a couple lines shorter
+ Now tries to guess Linux distro names and versions
+ Displays symlinked EMACSDIR and DOOMDIR
+ Replaces elc-files segment with 'byte-compiled-config trait
2021-02-11 17:35:48 -05:00
Henrik Lissner
510bc7b5b4 Revert "Don't auto-create directory when opening files"
This reverts commit 4d7640b4c2.
2021-02-11 17:35:48 -05:00
Henrik Lissner
8110992829 s/doom-partial/apply-partially
comp is loaded earlier on some builds of native-comp, for some reason?
2021-02-11 13:36:55 -05:00
Henrik Lissner
16a495c97d Fix #4548: global TAB overwritten by evil keybind 2021-02-06 06:54:18 -05:00
Henrik Lissner
9446a8f411 Move byte-compile fix to core-packages
So it targets more than just 28.x+ users.
2021-02-06 04:49:28 -05:00
Henrik Lissner
de1f2a8f96 Add doom-plist-{keys,values} functions
Backported from the CLI rewrite.
2021-02-05 22:50:18 -05:00
Henrik Lissner
628f0a930f Force straight to byte-compile packages in same session
Straight (on its develop branch) byte compiles packages in a child
process, isolated from the current session. This is a sensible approach
and I applaud it, but there's a problem:

Some packages don't load their compile-time dependencies at
compile-time, causing errors *at* compile-time. They unwittingly rely on
the fact that package.el compiles them in the same session as their
dependencies, which indirectly loads their macros for them. I can't
depend on package authors to do the right thing, but I can force
straight to revert to the old approach.
2021-02-05 22:48:31 -05:00
Henrik Lissner
c3c001ad7d Bump core
domtronn/all-the-icons.el@c795d0f -> domtronn/all-the-icons.el@5fa7283
hlissner/emacs-so-long@ed666b0 -> emacs-straight/so-long@a5d445d
jwiegley/use-package@365c73d -> jwiegley/use-package@317137b
raxod502/straight.el@ac4df5c -> raxod502/straight.el@f2cb888

+ Complain if :no-byte-compile, :no-native-compile, or :no-build are
  used in package!. Straight replaced them with :build (and the old
  :build was renamed to :pre-build). See raxod502/straight.el@6a273d1
+ Update getting_started.org to mention :build
+ Switch to emacs-straight/so-long so I don't have to maintain my mirror
  anymore.
2021-02-04 07:32:26 -05:00
Janfel
8331f4f896
Fix interactive spec of doom/retab 2021-02-02 02:41:45 +01:00
Yuri Pieters
bf185edd91 Prefer readability over a line length < 80 2021-02-01 19:01:42 +00:00
Henrik Lissner
3a7be7bb4f Fix #4602, part 2! 2021-02-01 02:45:45 -05:00
Henrik Lissner
a61758523d Fix #4602: void-variable straight--build-default-steps 2021-02-01 02:31:22 -05:00
Yuri Pieters
b983929e82 Refactor doom/help-packages 2021-02-01 02:23:37 +00:00
Henrik Lissner
b78206d002 Bump :core
raxod502/straight.el@47dd03d -> raxod502/straight.el@ac4df5c
domtronn/all-the-icons.el@050d4c5 -> domtronn/all-the-icons.el@c795d0f
bbatsov/projectile@0e2620a -> bbatsov/projectile@793abfe
justbur/emacs-which-key@428aedf -> justbur/emacs-which-key@c0608e8

Fixes regression caused by 75549f5743
2021-01-31 20:41:17 -05:00
Henrik Lissner
7fcf2c2025 doom {build,purge}: reduce unnecessarily loud output
These lines don't add anything, and shouldn't be highlighted as
"success" messages.
2021-01-31 20:41:17 -05:00
Yuri Pieters
5293c460db Refactor doom--help-insert-button
Changes:
- Fixes a bug where opening a file which a buffer was already visiting
didn't raise the buffer.
- The function had unused functionality where it would split a string on
'::' and then search for the text after the first '::' in the buffer;
this has been removed.
- The searching functionality has been replaced with the option to pass
a line number, which the opened buffer will jump to. This is now used by
the part of doom/help-packages that shows the places a package is configured.
- It now fails earlier. If there's an invalid file, it fails at call
time rather than when the button is pressed.
- Add a docstring
2021-01-31 19:11:31 +00:00
MithicSpirit
d3112b5dfc
Doom Doctor: Fix insteadOf check
Always triggers when it's correct and never triggers when it's
incorrect.
2021-01-31 13:14:19 -05:00
Henrik Lissner
026d961985 doom doctor: fix insteadOf check #2679
I got the source and destination urls mixed up.
2021-01-31 04:34:46 -05:00
Henrik Lissner
05aa13ea19 doom purge: make repo regrafting opt-out
Was originally opt-in.
2021-01-31 04:30:48 -05:00
Henrik Lissner
07f134b10e doom purge: delete old ELN directories 2021-01-31 04:30:48 -05:00
Henrik Lissner
f5a9dc11ee Update deprecated notices on back (+forward) ports 2021-01-31 04:30:48 -05:00
Henrik Lissner
b91f1607d8 Fix #4532: wrong-number-of-args errors on emacs HEAD
This is a temporary fix. These should be removed once packages have
updated to accommodate the changes to the
define-obsolete-{variable,function,face}-alias macros.
2021-01-31 04:30:48 -05:00
Henrik Lissner
1650e25794 doom doctor: warn about insertOf rules in gitconfig
Closes #2679
2021-01-31 04:30:48 -05:00
Henrik Lissner
75549f5743 Fix doom build skipping some packages 2021-01-31 04:30:48 -05:00
Janfel
faefc9991c
Fix :unless in (doom!) 2021-01-29 23:07:03 +01:00
Henrik Lissner
56e9d273e1 Simplify doom/window-enlargen & doom/window-maximize-buffer
+ No longer toggle window conf on consecutive presses. It's redundant
  with winner-undo and only adds a degree of uncertainty to the command.
+ `doom/window-maximize-buffer` now works with popup windows (before
  it'd spout an unhelp error about running +popup/raise).
2021-01-28 21:23:07 -05:00