Commit Graph

14014 Commits

Author SHA1 Message Date
b091a43fc7 ui/modeline: don't resolve project root over tramp
It can be tremendously slow, and is evaluated on every input. Sometimes
several times on each input.
2020-08-07 02:01:04 -04:00
7606311108 Fix evil-multiedit
victorhge/iedit@be44da7 broke evil-multiedit, so we're pinning to the
last known working commit.
2020-08-06 23:20:43 -04:00
29489aad34 Remove 'doom update'
This command is commonly mistaken for 'doom upgrade'. No longer!
2020-08-06 22:24:41 -04:00
69259093e2 tools/lsp: fix lsp-mode init
3f5cc4c63 introduced some big changes to how Doom starts lsp-mode. I've
deferred much more of the work to upstream, but it:

1. lsp's errors no longer made sense (complaining about servers having
   no automated install routine, despite having one).
2. Broke lsp support in indirect buffers (like org src/capture buffers).

So I half-reverted 3f5cc4c63 and added a +lsp-auto-install-servers
variable to make it optional (albeit opt-in).
2020-08-06 20:45:16 -04:00
461b337734 Bump :term eshell
szermatt/emacs-bash-completion@96ce14a -> szermatt/emacs-bash-completion@d47edb9

v3.1 release of bash-completion
2020-08-06 19:36:22 -04:00
3f5cc4c630 Bump :tools lsp debugger
emacs-lsp/dap-mode@8c59b0a -> emacs-lsp/dap-mode@85a6163
emacs-lsp/lsp-mode@0131f1f -> emacs-lsp/lsp-mode@edb8119
realgud/realgud@de31e77 -> realgud/realgud@5b0ed08
tumashu/posframe@b3028b0 -> tumashu/posframe@6d604a7

Also refactors the :tools lsp module. Recent changes upstream have made
a few of our hacks unnecessary (or easier to pull off without advice).

Upstream has also introduced optimizations!
2020-08-06 19:36:22 -04:00
1bc770e89b Merge pull request #3690 from sorawee/racket-mode-flycheck
racket-mode: avoid using flycheck-disable-checker
2020-08-06 15:27:46 -04:00
51ec5493f3 Bump :input chinese japanese
skk-dev/ddskk@11d91b4 -> skk-dev/ddskk@fe7f82b
tumashu/pyim@b934273 -> tumashu/pyim@e54153f
2020-08-06 15:27:20 -04:00
72da7a3f04 editor/format: add org src-block support
Src blocks can now be reformatted. `+format/buffer` will reformat the
whole src block at point. `+format/region` will format only the
selection (even a subset of a src block).

Closes #3484
2020-08-06 15:25:56 -04:00
f0ad8cca25 docs/api: fix keymap in map! examples 2020-08-06 14:22:41 -04:00
e6417172cb Bump :tools eval
emacsorphanage/quickrun@c6ce1f3 -> emacsorphanage/quickrun@ce7383c

Crystal support was added to quickrun upstream.
2020-08-06 00:39:43 -04:00
bf9042327c lang/org: improve jupyter support
Closes #2477

Co-authored-by: Seong Yong-ju <sei40kr@gmail.com>
2020-08-06 00:32:36 -04:00
5a80db875c lang/org: add lookup handlers for src blocks
- Fixes: `set-lookup-handlers!` couldn't define :definition or
  :references handlers in text-mode derivatives.
- Adds: support for evaluating code in jupyter blocks (#2477).
2020-08-06 00:23:09 -04:00
3b159dda0a lang/org: add code-completion in src blocks
company-capf for src blocks and company-dabbrev for everything else.

Relevant to #2477
2020-08-06 00:22:40 -04:00
b5706c5793 Fix inverted on/off message from doom-debug-mode 2020-08-06 00:22:40 -04:00
aba2dcaf11 tools/debugger: bind SPC m d to dap-hydra
Closes #2955
2020-08-06 00:22:39 -04:00
3afee78c8b tools/debugger: fix file-missing dap-ui-mode error 2020-08-06 00:22:39 -04:00
a16c40d493 tools/magit: split sub-windows to the side
When a log or diff buffer is opened from the magit status buffer, it
would display them in a random window (or split, if none were
available). This changes forces it to predictably open to the right of
the magit status window (using the next window over, if available).
2020-08-06 00:22:39 -04:00
58b4ac9d6d PR feedback 2020-08-05 18:53:16 -07:00
6f2471cda7 Bind ZX -> Save then kill current buffer
Since bury-buffer is already on SPC b z, and isn't a common operation in
day to day Emacs use.

Other useful keybinds:
  ZZ      -> Save then kill current window
  zx      -> kill current buffer (prompts if unsaved)
  SPC b z -> bury buffer
  zn      -> (operator) narrow buffer
  zN      -> widen narrowed buffer
2020-08-05 20:58:29 -04:00
c88eb0fff8 Bump :lang crystal
crystal-lang-tools/emacs-crystal-mode@2428b01 -> crystal-lang-tools/emacs-crystal-mode@f9e4db1

We're also transitioning from abbreviated SHA1 hashes to full ones. See
45cdfb125 for why.
2020-08-05 20:51:47 -04:00
4bed77aa3a evil-kbd-macro-suppress-motion-error = t
Don't let innocuous motion errors abort the recording or playback of
macros.
2020-08-05 20:50:05 -04:00
d9fd738ba6 Fix #3695: load lsp-java for dap-mode 2020-08-05 19:26:59 -04:00
68136f7ff9 lang/org: add +pretty flag; move org-superstar
org-superstar is no longer enabled by default, due to unicode-related
crashes and general slowness betraying our "gotta go fast" mantra.
2020-08-05 18:31:01 -04:00
8ae0e79918 lang/org: add eval handler
With this, gr and gR will now work in babel blocks to execute a subset
of the block (or the whole thing, if you'd like). Results are displayed
in a popup buffer (or overlay if :tools (eval +overlay) is enabled).
2020-08-05 18:26:07 -04:00
80e1e8ff9a lang/org: refactor & reformatting 2020-08-05 18:26:07 -04:00
2c0cbec7c8 Fix universal {C,s}-RET keybinds in tty Emacs
And reformat all X-RET keybinds.
2020-08-05 18:26:07 -04:00
c6766c293d C-down-mouse-2 -> reset text-scale
Make this universal. Also removes redundant C-mouse-{4,5} mouse
bindings, they're already bound by mouse-wheel-mode.
2020-08-05 18:26:07 -04:00
68c15ef4ae lang/org: tie auto-indent on RET to electric-indent
Gives the user a venue for disabling indentation behavior.
2020-08-05 18:26:06 -04:00
863eb82efd S-RET -> insert literal newline
A convention on many text editors and applications is to make RET
auto-indent new lines. That has already been done. Another convention is
for S-RET to insert an unindented line; this commit adds this convention
to Doom.

Relevant to #3694
2020-08-05 18:26:06 -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
d81ef69525 Fix #3693: don't unfold archive trees on file-open
Also refactors +org-make-last-point-visible-h to be more realistic about
when it should and shouldn't expand the hidden region at point. Since
org-agenda-inhibit-startup is now non-nil by default it makes no sense
to test it (and it was a poor choice to begin with).

Plus, instead of using outline's API, better to use org's, even if
they're aliases or wrappers. Less of a maintenance burden.
2020-08-05 15:00:34 -04:00
77fbde957a Remove universal repeater on ; and ,
Ultimately, I didn't find this useful. Unifying n/N and ;/, was
inconvenient when you wanted to repeat each kind of search
independently (which happened more often than I had anticipated).

What's more, it introduced another point of confusion for new users
coming from vim. In the end, it's simply better to do as vim does.

Fixes #3689
2020-08-05 14:56:30 -04:00
00a8f750ed Fix wrong-type-arg: stringp when tangling config.org 2020-08-05 03:32:21 -04:00
5a68352cd5 Mention that +evil-repeat-keys can be set to nil
To disable universal repeating on ; and ,
2020-08-05 03:32:17 -04:00
214411edb4 racket-mode: avoid using flycheck-disable-checker
The problem is that at this point, flycheck-mode might not be active
yet. Calling flycheck-disable-checker always call (flycheck-buffer)
which would result in an error: (user-error "Flycheck mode disabled")
2020-08-04 17:30:39 -07:00
01c5c35686 Fix #3688: failure tangling config.org 2020-08-04 18:04:15 -04:00
d45fff0088 Merge pull request #3684 from Janfel/patch-1
Fix Elisp file template header in doom-private-dir.
2020-08-04 14:59:53 -04:00
dc489d24e7 bidi-inhibit-bpa = t
Speeds up redisplay a little, but possible at the expense of folks who
use Emacs for RTL languages.
2020-08-04 14:58:13 -04:00
c7bfbafdcc Tempfix #3683: vterm not building on emacsgcc
Remove this when akermu/emacs-libvterm#363 is resolved.
2020-08-04 14:03:06 -04:00
f641bf4554 Fix 'void-variable: backup' error
Fixes my fix for #3685
2020-08-04 13:58:40 -04:00
8580b53e8e Fix #3685: don't mutate org buffer when tangling
If the buffer doesn't change, the cursor won't move.
2020-08-04 13:43:14 -04:00
6ba04c13b2 Fix file template header in $DOOMDIR/autoload. 2020-08-04 15:24:50 +02:00
9f84bc334b Forward file-missing errors from within autoloads
If a load call occurs within the autoloads file and throws a
file-missing error, it would be misleading to say 'doom sync' will fix
it, so forward the real error!
2020-08-04 07:34:16 -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
6e702a435a Warn when :ensure t is used
When package.el isn't initialized.
2020-08-03 19:11:15 -04:00
9ac9deb0fd Bump :lang clojure
clojure-emacs/cider@3d8552a -> clojure-emacs/cider@9e117c2

Closes #3680
2020-08-03 18:57:34 -04:00
a1b39b4011 Bump :lang nix
NixOS/nix-mode@5b59617 -> NixOS/nix-mode@a00b3f7
2020-08-03 15:01:27 -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
15e156294f Merge pull request #3668 from willbchang/develop
ui(tabs): use a smaller dot to show unsaved file status
2020-08-03 02:52:55 -04:00