Commit Graph

483 Commits

Author SHA1 Message Date
9cdb0b85d3 Optimize large-file detection
Two less file ops when opening new files. Particularly helpful for
remote files.
2020-10-18 19:08:07 -04:00
c59ae5d172 Stop ws-butler from corrupting undo history #4071 2020-10-11 16:41:07 -04:00
3935d431fc tab-always-indent = nil
Seems like a more sensible default to reindent the line if cursor is at
BOL or in indentation, then insert literal indentation (tab or space *
tab-width) otherwise.
2020-09-01 01:41:39 -04:00
801cfd63d4 Don't recenter window after better-jumper jump
On C-o or C-i; this can be more disorienting than helpful.
2020-08-21 15:49:39 -04:00
995b45285c core: revise & clarify comments 2020-08-20 03:35:29 -04:00
9cab6a6fd9 Fix #3723: auto-revert on window/buffer switch 2020-08-13 22:49:35 -04:00
0a4841b247 Add :os tty module
- Moves clipetty to its own, opt-in module (#2671, #3195, #3498)
- Fix cursor shape changing between evil states (#1994)
- Moves `xterm-mouse-mode` and `visible-cursor` config out of core.
2020-08-07 23:44:39 -04:00
9a5175dd0e Fix savehist compression & persist marks
+ Fixes: doom-unpropertize-kill-ring-h ran too late to affect the value
  of kill-ring that gets saved.
+ Adds: now persist mark-ring and global-mark-ring (doesn't affect evil
  users)
2020-08-05 16:21:40 -04:00
7638bd3968 Revert 439999cb6
I had incorrectly assumed tramp-own-remote-path would prepend the remote
system's PATH to tramp's exec-path, but it does not, it prepends your
local machine's PATH onto it. tramp-default-remote-path was what I was
looking for and it is already in tramp-remote-path by default.

If tramp can't find a program on the remote it's because either the
remote doesn't support getconf (which tramp uses to scrape the remote
PATH), or your PATH on the remote has been incorrectly configured.
2020-08-03 20:29:41 -04:00
439999cb66 Add tramp-own-remote-path to tramp-remote-path
Makes tramp consider the remote's PATH when searching for executables.
2020-08-03 15:01:11 -04:00
ccfaf3f464 Move auto-mode-alist fallbacks to bottom
So they don't override auto-mode-alist entries added by packages, like
direnv's .envrc entry.
2020-07-26 18:26:33 -04:00
bcc1b84e76 Increase so-long threshold for softwrapped text modes 2020-07-24 02:29:03 -04:00
c348b51e5f Fix typo regression from 8e83a8e84 2020-07-13 17:14:57 -04:00
8e83a8e842 Fix #3491: void-function doom-set-jump-h 2020-07-13 17:10:30 -04:00
3a38fc633c Change doom-{interactive,debug}-mode suffix to -p
Because these are not really modes.

Also makes `doom-debug-mode` an actual (global) minor mode.
2020-05-25 03:43:40 -04:00
8a83e9addd Fix wrong-number-of-args error on dired-find-file 2020-05-15 14:20:03 -04:00
0e851ace9b Backport bits of CLI rewrite
The rewrite for Doom's CLI is taking a while, so I've backported a few
important changes in order to ease the transition and fix a couple bugs
sooner.

Fixes #2802, #2737, #2386

The big highlights are:

- Fix #2802: We now update recipe repos *before* updating/installing any
  new packages. No more "Could not find package X in recipe repositories".

- Fix #2737: An edge case where straight couldn't reach a pinned
  commit (particularly with agda).

- Doom is now smarter about what option it recommends when straight
  prompts you to make a choice.

- Introduces a new init path for Doom. The old way:
  - Launch in "minimal" CLI mode in non-interactive sessions
  - Launch a "full" interactive mode otherwise.
  The new way
  - Launch in "minimal" CLI mode *only* for bin/doom
  - Launch is a simple mode for non-interactive sessions that still need
    access to your interactive config (like async org export/babel).
  - Launch a "full" interactive mode otherwise.

  This should fix compatibility issues with plugins that use the
  async.el library or spawn child Emacs processes to fake
  parallelization (like org's async export and babel functionality).

- Your private init.el is now loaded more reliably when running any
  bin/doom command. This gives you an opportunity to configure its
  settings.

- Added doom-first-{input,buffer,file}-hook hooks, which we use to queue
  deferred activation of a number of packages. Users can remove these
  modes from these hooks; altogether preventing them from loading,
  rather than waiting for them to load to then disable them,
  e.g. (after! smartparens (smartparens-global-mode -1)) -> (remove-hook
  'doom-first-buffer #'smartparens-global-mode)

  Hooks added to doom-first-*-hook variables will be removed once they
  run.

  This should also indirectly fix #2386, by preventing interactive modes
  from running in non-interactive session.

- Added `doom/bump-*` commands to make bumping modules and packages
  easier, and `doom/bumpify-*` commands for converting package!
  statements into user/repo@sha1hash format for bump commits.

- straight.el is now commit-pinned, like all other packages. We also
  more reliably install straight.el by cloning it ourselves, rather than
  relying on its bootstrap.el.

  This should prevent infinite "straight has diverged from master"
  prompts whenever we change branches (though, you might have to put up
  with it one more after this update -- see #2937 for workaround).

All the other minor changes:

- Moved core/autoload/cli.el to core/autoload/process.el
- The package manager will log attempts to check out pinned commits
- If package state is incomplete while rebuilding packages, emit a
  simpler error message instead of an obscure one!
- Added -u switch to 'doom sync' to make it run 'doom update' afterwards
- Added -p switch to 'doom sync' to make it run 'doom purge' afterwards
- Replace doom-modules function with doom-modules-list
- The `with-plist!` macro was removed, since `cl-destructuring-bind`
  already serves that purpose well enough.
- core/autoload/packages.el was moved into core-packages.el
- bin/doom will no longer die if DOOMDIR or DOOMLOCALDIR don't have a
  trailing slash
- Introduces doom-debug-variables; a list of variables to toggle on
  doom/toggle-debug-mode.
- The sandbox has been updated to reflect the above changes, also:
  1. Child instances will no longer inherit the process environment of
     the host instance,
  2. It will no longer produce an auto-save-list directory in ~/.emacs.d
2020-05-15 01:33:52 -04:00
a239326165 Activate save-place-mode when it loads 2020-05-14 01:00:12 -04:00
e4f24fd150 Don't enable smartparens-mode in minibuffer if global mode is off 2020-05-01 16:03:18 -04:00
d12752324a Introduce letf! convenience macro
A more succinct cl-letf, which allows for local functions and macros.
2020-04-29 23:48:21 -04:00
e24b8cd1d1 Slim down from lang/data
+ Removes jsonnet, graphql, dhall & protobuf packages from the module.
+ Removes +data-vagrant-mode project minor mode (unused).

I'm phasing out the lang/data module. Its original purpose was to be for
data interchange formats, like JSON, but over time it became the dumping
ground for languages with no clear defining feature.

These packages are being removed first because their configs are
non-existent or so trivial that it offers nothing a user couldn't set up
themselves.

graphql and jsonnet might get heir own modules (or jsonnet might be
gated behind a flag in the :lang json module), but for now they gotta
go.

fixup! Remove jsonnet, graphql, dhall & protobuf modes from lang/data
2020-04-23 23:56:17 -04:00
a36afa5136 Remove redundant dtrt-indent mapping
It was upstreamed in jscheid/dtrt-indent#51
2020-04-19 20:34:47 -04:00
07350731ad Update comment re:soft line wrapping 2020-04-15 18:22:59 -04:00
46b99567de Make soft-wrapping the default in text modes 2020-04-15 13:12:10 -04:00
3e340ab415 Add :emacs undo module
Moves undo-fu/undo-tree out of core and allows uses to choose one or the
other.

Relevant to #2339
2020-04-13 18:45:40 -04:00
15ab86848e Fix load-order issue for undo-fu-session
Which made it much more difficult to customize undo-fu-session with
merely an `after!` block. See jwiegley/use-package#829 for why this
happens.
2020-04-09 18:19:11 -04:00
aa2096e00c Add typescript-mode support to dtrt-indent #2860
Until jscheid/dtrt-indent#51 is merged.
2020-04-09 15:35:41 -04:00
09652762a2 Remove undo-tree command remaps 2020-04-09 14:46:42 -04:00
f8c808d785 Remove xclip 2020-04-08 22:06:38 -04:00
b78fc4eb76 Minor refactor & reformatting across the board 2020-04-08 15:30:10 -04:00
8ab0cd66a7 Replace undo-tree with undo-fu + undo-fu-session
Despite the recent patches to fix undo history corruption, its history
would still get unpredictably truncated due to non-linear memory
expansion.

Relevant to #2339
2020-04-07 20:15:53 -04:00
3264e73a66 Merge pull request #2734 from Shooooooooo/develop
Add clipetty for TTY users.
2020-04-07 17:58:25 -04:00
e29136dd3e Don't backup remote files 2020-03-27 02:30:49 -04:00
a038e7799b Fix #2754: recover-session cannot see auto-saves 2020-03-27 02:30:49 -04:00
215d9646ea Add clipetty for TTY users. 2020-03-16 23:00:16 +01:00
69f14bc3da Apply smartparens lisp rules to sly-mrepl-mode 2020-03-06 15:26:36 -05:00
089e653637 Reduce so-long false positives 2020-02-26 18:05:58 -05:00
2f251edc87 Fix doom-guess-mode-h for indirect buffers 2020-02-25 20:34:26 -05:00
014385a9f6 Prevent numerical type errors on after-find-file
In some edge cases.
2020-02-07 04:23:07 -05:00
12ebc58f2e Suppress so-long in soft-wrapped text-mode buffers 2020-01-15 02:20:46 -05:00
29250133e8 Replace doom/describe-symbol w/ helpful-symbol
And helpful-at-point.
2020-01-11 17:21:35 -05:00
44fb8ab594 undo-tree-enable-undo-in-region = t 2020-01-09 03:40:02 -05:00
15f2245b10 Install undo-tree 0.7.1 from emacs-straight/undo-tree
I re-enable history persistence, now that it has been fixed.

Also, I install it from the emacs-straight/undo-tree mirror, which is
fast and reliable.

Closes #2339, #2334
2020-01-09 03:09:06 -05:00
dc22815227 Fix #2234 (temporarily)
Due to breaking changes in undo-tree.
2020-01-08 00:47:18 -05:00
36e73aedb6 Disable xclip-mode on windows 2020-01-06 15:06:28 -05:00
fe57256d6b Minor refactors; reduce sp-max-prefix-length 2020-01-05 19:58:59 -05:00
f26b148b2b Use my fork of ws-butler 2020-01-04 18:11:10 -05:00
a2eee97c9d undo-tree-{visualizer,auto-save-history} = t 2020-01-04 16:26:28 -05:00
da8bce53bc Enable smartparens-mode during pp-eval-expression 2020-01-03 00:21:01 +08:00
8f5977d9b8 Fix #2282: save-interprogram-paste-before-kill = nil
Seems more problematic than helpful to manipulate Emacs' kill-ring more
than we have to.
2020-01-01 21:24:06 -05:00