Commit Graph

9621 Commits

Author SHA1 Message Date
20b397362b Don't auto-kill term/vterm/eshell dedicated popups 2019-06-27 01:27:40 +02:00
6317fa0435 Fix #1509: failure to resize certain popups (part 2)
doom/window-enlargen would fail silently for windows with a preserved
size (e.g. all ui/popup popup windows)
2019-06-26 23:06:46 +02:00
95dff9f2c6 Remove deprecated set-env! 2019-06-26 21:06:05 +02:00
d697cb7ec7 Fix C-{j,k} in non-read-expression prompts 2019-06-26 19:18:04 +02:00
525cba3f3b ui/workspaces: fix +workspaces|init for daemon 2019-06-26 19:17:56 +02:00
129377ca5f Remap tags commands sooner
Makes them easier for users to remap later.
2019-06-26 14:49:39 +02:00
a9951ee63b Autorevert on switch window
Better coverage for lazy autoreverting
2019-06-26 14:31:07 +02:00
9c29ad78e0 Add SHELL to doom-info 2019-06-26 14:31:07 +02:00
6bcddad852 Bind s-x (in visual mode) to kill-region on MacOS
To emulate standard cut behavior on cmd+X on MacOS
2019-06-26 14:31:07 +02:00
9a02bd8ac8 Minor refactors across the board
- when-let* -> when-let
- Fix projectile-locate-dominating-file for connected remote files
2019-06-26 14:31:06 +02:00
4ecf6c9414 Add SCHEDULED support to +org/dwim-at-point 2019-06-26 14:31:06 +02:00
4f5f51237e cli/env: remove ignored vars retroactively
doom-env-ignored-vars is now treated as a list of regexps.

Also updates docstrings and announces ignored variables.
2019-06-26 14:31:06 +02:00
cdc41fc822 cli/env: reformat envvar file header
Places the generation command on line 2 for easier retrieval and
reformats explanation below.
2019-06-26 14:31:06 +02:00
f4ef25bb12 Don't delete-other-windows during org-agenda popup 2019-06-26 14:31:06 +02:00
b245237b0c Move custom-file to DOOMDIR/init.el
(And don't auto-load it at startup; no need)
2019-06-26 14:31:06 +02:00
b5c5b7f10d Move posframe+persp-mode fix to ui/workspaces 2019-06-26 14:31:06 +02:00
9823881d47 ui/workspaces: general refactor
- Fixes #1506: unsets uniquify-buffer-name-style to work around breakage
  in persp-mode having to do with buffers being retrospectively renamed.
  See Bad-ptr/persp-mode.el#104.
- Move creation of main workspace into persp-mode-hook, to ensure main
  workspace always exists and nil workspace is never active.
- Remove +workspaces|init-frame and significantly reduce LOC in
  +workspaces|init to the bare essentials. This _may_ break persp-mode
  in daemon Emacs, but I'll deal with that next.
2019-06-26 14:30:37 +02:00
86ebe08593 Show dirname in ivy-switch-buffer #1506
Makes buffer names more readable in case uniquify-buffer-name-style is
nil (which is necessary to work around a limitation of persp-mode).
2019-06-26 14:28:40 +02:00
26da625981 Fix #1509: failure to resize certain popups 2019-06-26 14:28:40 +02:00
168c1d5e61 Disable evil-snipe in calc-mode 2019-06-26 14:28:40 +02:00
affa7314f7 Remap C-{j,k} to {next,previous}-line-or-history-element 2019-06-26 14:28:40 +02:00
1e357310c4 Fix localleader alt key in insert mode 2019-06-26 14:28:40 +02:00
7a4bce3f9a ui/workspaces: associate buffers on buffer switch
We stop relying on the built-in mechanism for auto-registering a buffer
to the current workspace, because it misses many buffers (e.g. when we
switch buffers with SPC b b). Instead, we add buffers when they are
interactively switched to.
2019-06-26 14:28:40 +02:00
0290b687a5 Decouple ]e / [e keys from :tools flycheck module #1511
They're generic enough.
2019-06-26 14:28:40 +02:00
c0eb1f524d Fix exclusion of doom local files in recentf
Due to a load order issue, the doom-local-dir regexp wouldn't be mapped
through our custom recentf-filename-handlers. `file-in-directory-p` is
more robust.
2019-06-26 14:28:40 +02:00
8434ae619d Enable evil-escape in term-mode
It was formerly escaped because of general bugginess, particularly when
bind -v was used in zsh. It's still too buggy to enable in vterm-mode,
however.
2019-06-26 14:28:33 +02:00
2d5e72baeb Merge pull request #1505 from birdgg/fix-smergehydra
emacs/vc: fix file-not-found in autoload
2019-06-22 02:01:38 +02:00
64d88bb956 fix: file not found in autoload 2019-06-21 16:45:07 +08:00
2e96fce2e0 ui/modeline: remove obsolete advice (fix #1372) 2019-06-19 11:37:27 +02:00
b45591989b Revert remote reloading after refreshing autoloads
It's too flimsy, breaks easily, and doesn't handle the case where
multiple instances of Emacs are open.
2019-06-18 22:10:19 +02:00
710a18d18a Fix #1501: fix sh function
`format` is variadic
2019-06-18 22:09:28 +02:00
9c74d9d669 Add SPC g b and SPC g c b for branching
SPC g b = magit-branch-checkout
SPC g c b = magit-branch-and-checkout
2019-06-18 22:06:29 +02:00
e313fef7b0 term/eshell: fix reference to old function 2019-06-18 21:52:50 +02:00
44a5ffad66 tools/flyspell: doom-log failed to find checker
Instead of logging with message, which is more disruptive (appears in
bin/doom output, for instance).
2019-06-18 17:30:26 +02:00
4575cbef05 Add rg check to core/doctor.el 2019-06-18 17:30:08 +02:00
798e10c4f2 Refactor doom doctor
And move font check into core/doctor.el
2019-06-18 17:29:50 +02:00
fd1b31667e Index projects with ripgrep/fd on Windows 2019-06-18 14:43:15 +02:00
f2d7c5625d Revise comments & docstring 2019-06-18 14:43:05 +02:00
3589ce4c5b Fix exclusion of doom-local-dir from recentf list 2019-06-18 13:38:21 +02:00
ae365272ad Set exec-path/shell-file-name in doom-load-env-vars
And perform file-readable-p check inside doom-load-env-vars
2019-06-18 11:46:27 +02:00
12fa049012 Disable lazy autorevert if auto-revert-mode is used 2019-06-18 00:51:59 +02:00
c0bffd4268 editor/file-templates: general refactor 2019-06-18 00:29:05 +02:00
21cf1c2da6 editor/file-templates: fix #1401
org-capture, when used on a target that doesn't exist, will invisibly
expand a file template, leaving a hang yasnippet active. After
org-capture initializes, the yasnippet will attempt to operate on
overlays that don't exist, throwing overlayp errors.
2019-06-18 00:21:26 +02:00
e2869c62a1 Add file-readable-p check to doom-project-find-file 2019-06-17 20:57:29 +02:00
9c842bfad8 Open term popups in current dir, instead of project-root
CDing into the project root can be accomplished with external tools, e.g.

  cd $(git rev-parse --show-toplevel)
  cd $(hg root)
  cd $(npm root)

Any of which could be aliased. Also, +vterm/toggle and term/toggle
define the PROOT environment variable, so `cd $PROOT` will work too.

On the other hand, CDing to the current file/folder requires that the
shell be made aware of the file/directory of some Emacs state, which is
a little trickier to deal with, so I made that the default behavior for
+term/toggle, +vterm/toggle and +eshell/toggle.
2019-06-17 19:25:17 +02:00
2835314022 term/term: don't erase term buffer on toggle #1492 2019-06-17 16:06:11 +02:00
d27c148e14 Fix font-resizing in child frames #1500 2019-06-17 16:01:37 +02:00
0a7221798b Start file searchs from basic sh/dash shell
Uses the most basic, uncustomized shell to a) prevent interference
caused by slow shell configs and b) speed up project text searches. This
comes at the cost of isolating these programs from envvars that the user
may have set in their shell configs in order to change
ag/rg/pt/git-grep/grep's behavior.

If this bothers you, change +ivy-file-search-shell to your shell (or
to the value of `shell-file-name`).

Possibly relevant to an issue mentioned in #1260
2019-06-17 15:10:55 +02:00
855ff34e2c Port more next/previous motions from vim
They are:

]m, [m
  Jump to next/previous beginning of method/function.
]M, [M
  Jump to next/previous end of method/function
]#, [#
  Jump to next/previous preprocessor directive (only supports C-style
  directives for now)
]*, [* (or ]\, [\)
  Jump to next/previous comment
2019-06-17 12:37:19 +02:00
61502d7e31 Reformat editor/evil/autoload/evil library 2019-06-17 12:05:54 +02:00