Commit graph

5017 commits

Author SHA1 Message Date
Henrik Lissner
26319322b2 Remove redundant straight--build-compile advice
May address #4778 and #4783
2021-03-11 11:44:18 -05:00
Henrik Lissner
abec86310b Fix #4777: wrong-type-argument listp unpin error 2021-03-11 10:57:41 -05:00
ivanbrennan
e8fe7582a3
fix doom-{after,before}-reload-hook doc strings 2021-03-10 20:27:57 -05:00
Henrik Lissner
d76d50c1c9 Fix #4676: one-off on go-to-EOL if comment at BOL
Before this commit:
  1. With `|;;; hello`
  2. Press `C-e`: `;|;; hello`
  3. Press `C-e` again: `;;; hello|`

After:
  1. With `|;;; hello`
  2. Press `C-e`: `;;; hello|`
  3. Press `C-e` again: `|;;; hello`
2021-03-10 13:03:29 -05:00
Henrik Lissner
7870350f84 Fix #4768: don't ignore remote projects 2021-03-10 10:48:57 -05:00
Henrik Lissner
b0bec922a9 Fix #4758: wrong-type-arg listp on doom-store-persist 2021-03-09 14:44:24 -05:00
Henrik Lissner
ab7710adfd doom-info: fix args-out-of-range error 2021-03-08 10:25:09 -05:00
Henrik Lissner
cf44c43f41 Simplify doctor's native JSON detection 2021-03-07 14:33:11 -05:00
Henrik Lissner
4192d87dcd Redesign doom/info
+ Focus on the important information and cut down on excess.
+ Prompt the user to open pastebin.com after copying doom-info to
  clipboard.
+ Include timestamp in doom-info.
2021-03-07 00:03:04 -05:00
Henrik Lissner
6b173c5cc5 Remove mention of removed -p in 'doom help install'
This option was removed some time ago. Setting the DOOMDIR envvar is the
canonical way to do this now.

Fixes #4643
2021-03-06 15:06:09 -05:00
Henrik Lissner
f8d181a8c4 Ignore remote/temp files or packages as projects 2021-03-06 11:41:47 -05:00
Henrik Lissner
0ebd58c991 Purge ignored projects from cache/known projects
At shutdown time.
2021-03-06 11:39:54 -05:00
Henrik Lissner
e52fd138e2 Refactor autoload/store.el library
+ Expired pcache entries are now purged when Emacs is killed.
+ Preform additional type checks for better runtime safety.
+ TTL argument can now be a predicate function. Takes two arguments: the
  key and value, if it returns nil, consider the entry stale.
2021-03-05 20:09:22 -05:00
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